Fixing Small_Art Default
Small ART mode was turned on by default. It should be off by default as there's otherwise no option to
turn it off.
Change-Id: I9b723f7c5d9c95c210722861fc1e0cd08560a371
diff --git a/src/runtime.cc b/src/runtime.cc
index d886fe3..df0511d 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -364,7 +364,7 @@
parsed->hook_exit_ = exit;
parsed->hook_abort_ = NULL; // We don't call abort(3) by default; see Runtime::Abort.
- parsed->small_mode_ = true;
+ parsed->small_mode_ = false;
parsed->small_mode_method_threshold_ = Runtime::kDefaultSmallModeMethodThreshold;
parsed->small_mode_method_dex_size_limit_ = Runtime::kDefaultSmallModeMethodDexSizeLimit;
diff --git a/src/runtime.h b/src/runtime.h
index ac9b50b..0ada0a2 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -61,7 +61,7 @@
public:
typedef std::vector<std::pair<std::string, const void*> > Options;
- static const size_t kDefaultSmallModeMethodThreshold = 10;
+ static const size_t kDefaultSmallModeMethodThreshold = 30;
static const size_t kDefaultSmallModeMethodDexSizeLimit = 100;
class ParsedOptions {