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:
Calin Juravle
2018-05-08 12:42:30 -07:00
parent e7b05b8797
commit 62cd4bbcaa

View File

@@ -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.
*/