diff options
| author | 2014-11-18 22:45:48 +0000 | |
|---|---|---|
| committer | 2014-11-18 22:45:50 +0000 | |
| commit | 2a20f425580b48ec5c130e77eb2a447731e37381 (patch) | |
| tree | 85bfe0fc63470c9d926becf631174df3df42b9a2 | |
| parent | 6104fb2862e591fcd62660f5cd11ab5ca48adebb (diff) | |
| parent | ca775941f3b7981aabf3a6a3b84d6c94f4f76aff (diff) | |
Merge "Frameworks/base: Compiled-classes support" into lmp-mr1-dev
| -rw-r--r-- | core/jni/AndroidRuntime.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index c5f1d88f535d..1fbd4a113720 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -787,6 +787,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) addOption("-Ximage-compiler-option"); addOption("--image-classes=/system/etc/preloaded-classes"); + // If there is a compiled-classes file, push it. + if (hasFile("/system/etc/compiled-classes")) { + addOption("-Ximage-compiler-option"); + addOption("--compiled-classes=/system/etc/compiled-classes"); + } + property_get("dalvik.vm.image-dex2oat-flags", dex2oatImageFlagsBuf, ""); parseExtraOpts(dex2oatImageFlagsBuf, "-Ximage-compiler-option"); |