diff options
| author | 2019-06-28 15:56:58 +0000 | |
|---|---|---|
| committer | 2019-06-28 15:56:58 +0000 | |
| commit | 566bfcf475d0474245f989865131e1918c29a399 (patch) | |
| tree | c3f50292e2cfdbe32caf94be51e6a3d27ea17ad1 | |
| parent | 51b6c7666014e37e459735ba4f65d4f923a5855d (diff) | |
| parent | 96fab6e32d8b8423d6617d03c8cb9fcbe6bb387e (diff) | |
Merge "Remove support for image classes"
| -rw-r--r-- | core/jni/AndroidRuntime.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 69cdf799dd71..0da314ba43ca 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -886,20 +886,16 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote, bool p addOption("-Ximage-compiler-option"); addOption("--compiler-filter=speed-profile"); } else { - // Make sure there is a preloaded-classes file. - if (!hasFile("/system/etc/preloaded-classes")) { - ALOGE("Missing preloaded-classes file, /system/etc/preloaded-classes not found: %s\n", - strerror(errno)); - return -1; - } - addOption("-Ximage-compiler-option"); - addOption("--image-classes=/system/etc/preloaded-classes"); + ALOGE("Missing boot-image.prof file, /system/etc/boot-image.prof not found: %s\n", + strerror(errno)); + return -1; + } - // If there is a dirty-image-objects file, push it. - if (hasFile("/system/etc/dirty-image-objects")) { - addOption("-Ximage-compiler-option"); - addOption("--dirty-image-objects=/system/etc/dirty-image-objects"); - } + + // If there is a dirty-image-objects file, push it. + if (hasFile("/system/etc/dirty-image-objects")) { + addOption("-Ximage-compiler-option"); + addOption("--dirty-image-objects=/system/etc/dirty-image-objects"); } property_get("dalvik.vm.image-dex2oat-flags", dex2oatImageFlagsBuf, ""); |