Fixed Android.common.mk #define setting for small art
We were seeing things compile when they shouldn't have. This fixes it. Plus added
a bit more documentation to options, set default values for the two small art related
thresholds to zero.
Change-Id: Id5db11962f3e30d8d4ee6b85d4cf7d6e66323adb
diff --git a/src/runtime.h b/src/runtime.h
index 0ada0a2..6f03fe0 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -61,8 +61,13 @@
public:
typedef std::vector<std::pair<std::string, const void*> > Options;
- static const size_t kDefaultSmallModeMethodThreshold = 30;
- static const size_t kDefaultSmallModeMethodDexSizeLimit = 100;
+ // In small mode, apps with fewer than this number of methods will be compiled
+ // anyways.
+ static const size_t kDefaultSmallModeMethodThreshold = 0;
+
+ // In small mode, methods smaller than this dex op count limit will get compiled
+ // anyways.
+ static const size_t kDefaultSmallModeMethodDexSizeLimit = 0;
class ParsedOptions {
public: