diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-12-18 22:15:56 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-12-18 22:15:56 +0000 |
commit | c44bb1e7e086884f30d41f64ee3b5cb4032253b5 (patch) | |
tree | 11dbbbd364c7aa8c28cc042a8bf8b6624b2bb5f3 | |
parent | d2d90230f80ed211f090f8bb333a15cbecb4c575 (diff) | |
download | art-c44bb1e7e086884f30d41f64ee3b5cb4032253b5.tar.gz art-c44bb1e7e086884f30d41f64ee3b5cb4032253b5.tar.bz2 art-c44bb1e7e086884f30d41f64ee3b5cb4032253b5.zip |
runtime: Invert the default for dexopt-on-cache
The growth of /system apps and total /data space are making this
device-breaking (insufficient space to dexopt everything to
/cache), pointless (/data has more than enough room to hold
the cache), and in some cases, both.
The default behavior is now the same as mainline Android's: dexopt
everything to /data. Set dalvik.vm.dexopt-data-only=0 to change
that and dexopt /system apps to /cache. If you do that, make sure
your /cache can accomodate double the size of the dex classes in
system, since that has been observed during dex2oat
Change-Id: I8c1debee6e16a6fb162e42a7c9a47ec076eb69df
-rw-r--r-- | runtime/utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc index 285e337fe4..6cd5a9351a 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -1217,7 +1217,7 @@ std::string GetDalvikCacheFilenameOrDie(const std::string& location) { std::string dalvik_cache(GetDalvikCacheOrDie(GetAndroidData())); #ifdef ALLOW_DEXROOT_ON_CACHE char dexoptDataOnly[PROPERTY_VALUE_MAX]; - property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, ""); + property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "1"); if ((StartsWith(location, "/system")) && (strcmp(dexoptDataOnly, "1") != 0)) { dalvik_cache = GetDalvikCacheOrDie(GetAndroidCache()); } |