summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-12-18 22:15:13 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-12-18 22:17:47 +0000
commitff3989a9c0d2403eb3bbac3fa89a9ea001730725 (patch)
tree40b017f6bf198b828d20530bc57bcce240748253
parent1458b20ab256338a13640aaa58cf48c13fcefe86 (diff)
downloadandroid_dalvik-ff3989a9c0d2403eb3bbac3fa89a9ea001730725.tar.gz
android_dalvik-ff3989a9c0d2403eb3bbac3fa89a9ea001730725.tar.bz2
android_dalvik-ff3989a9c0d2403eb3bbac3fa89a9ea001730725.zip
libdex: 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 in some extreme cases that has been observed during dex2oat Change-Id: Ia99655731c882e54bdc85293c467288fb4dc65df
-rw-r--r--libdex/OptInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdex/OptInvocation.cpp b/libdex/OptInvocation.cpp
index ad69a9efa..32f8a3fd6 100644
--- a/libdex/OptInvocation.cpp
+++ b/libdex/OptInvocation.cpp
@@ -127,7 +127,7 @@ char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName)
#ifdef ALLOW_DEXROOT_ON_CACHE
/* Cache anything stored on /system in cacheRoot, everything else in dataRoot */
if (!strncmp(absoluteFile, systemRoot, strlen(systemRoot))) {
- property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "");
+ property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "1");
if (strcmp(dexoptDataOnly, "1") != 0) {
dexRoot = cacheRoot;
}