Process "dalvik.vm.profilebootimage" system property
Read the profile boot image property and pass the appropriate flags to the android runtime. Test: build, flash and check properties Bug: 73313191 Change-Id: Ie972e2eb693678d268e707b9e892c97dd7dd061b
This commit is contained in:
@@ -732,6 +732,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote)
|
||||
jittransitionweightOptBuf,
|
||||
"-Xjittransitionweight:");
|
||||
|
||||
property_get("dalvik.vm.profilebootimage", propBuf, "");
|
||||
if (strcmp(propBuf, "true") == 0) {
|
||||
addOption("-Xps-profile-boot-class-path");
|
||||
addOption("-Xps-profile-aot-code");
|
||||
}
|
||||
|
||||
/*
|
||||
* Madvise related options.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user