Remove dalvik.vm.usejitprofiles system property.
Disabling profiles is no longer supported. Most of the profile support has been active even when this property was false, and it won't be supported in the ART Service. Test: Boot with dalvik.vm.usejitprofiles=false Bug: 254434433 Change-Id: I27e0639ba71ea794a5770263c4d357c52531a99a
This commit is contained in:
@@ -643,7 +643,6 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote, bool p
|
|||||||
char jitmaxsizeOptsBuf[sizeof("-Xjitmaxsize:")-1 + PROPERTY_VALUE_MAX];
|
char jitmaxsizeOptsBuf[sizeof("-Xjitmaxsize:")-1 + PROPERTY_VALUE_MAX];
|
||||||
char jitinitialsizeOptsBuf[sizeof("-Xjitinitialsize:")-1 + PROPERTY_VALUE_MAX];
|
char jitinitialsizeOptsBuf[sizeof("-Xjitinitialsize:")-1 + PROPERTY_VALUE_MAX];
|
||||||
char jitthresholdOptsBuf[sizeof("-Xjitthreshold:")-1 + PROPERTY_VALUE_MAX];
|
char jitthresholdOptsBuf[sizeof("-Xjitthreshold:")-1 + PROPERTY_VALUE_MAX];
|
||||||
char useJitProfilesOptsBuf[sizeof("-Xjitsaveprofilinginfo:")-1 + PROPERTY_VALUE_MAX];
|
|
||||||
char jitprithreadweightOptBuf[sizeof("-Xjitprithreadweight:")-1 + PROPERTY_VALUE_MAX];
|
char jitprithreadweightOptBuf[sizeof("-Xjitprithreadweight:")-1 + PROPERTY_VALUE_MAX];
|
||||||
char jittransitionweightOptBuf[sizeof("-Xjittransitionweight:")-1 + PROPERTY_VALUE_MAX];
|
char jittransitionweightOptBuf[sizeof("-Xjittransitionweight:")-1 + PROPERTY_VALUE_MAX];
|
||||||
char hotstartupsamplesOptsBuf[sizeof("-Xps-hot-startup-method-samples:")-1 + PROPERTY_VALUE_MAX];
|
char hotstartupsamplesOptsBuf[sizeof("-Xps-hot-startup-method-samples:")-1 + PROPERTY_VALUE_MAX];
|
||||||
@@ -858,10 +857,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote, bool p
|
|||||||
parseRuntimeOption("dalvik.vm.jitpthreadpriority",
|
parseRuntimeOption("dalvik.vm.jitpthreadpriority",
|
||||||
jitpthreadpriorityOptsBuf,
|
jitpthreadpriorityOptsBuf,
|
||||||
"-Xjitpthreadpriority:");
|
"-Xjitpthreadpriority:");
|
||||||
property_get("dalvik.vm.usejitprofiles", useJitProfilesOptsBuf, "");
|
addOption("-Xjitsaveprofilinginfo");
|
||||||
if (strcmp(useJitProfilesOptsBuf, "true") == 0) {
|
|
||||||
addOption("-Xjitsaveprofilinginfo");
|
|
||||||
}
|
|
||||||
|
|
||||||
parseRuntimeOption("dalvik.vm.jitprithreadweight",
|
parseRuntimeOption("dalvik.vm.jitprithreadweight",
|
||||||
jitprithreadweightOptBuf,
|
jitprithreadweightOptBuf,
|
||||||
|
|||||||
@@ -320,15 +320,13 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub {
|
|||||||
|
|
||||||
switch (profileType) {
|
switch (profileType) {
|
||||||
case ArtManager.PROFILE_APPS :
|
case ArtManager.PROFILE_APPS :
|
||||||
return SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false);
|
return true;
|
||||||
case ArtManager.PROFILE_BOOT_IMAGE:
|
case ArtManager.PROFILE_BOOT_IMAGE:
|
||||||
// The device config property overrides the system property version.
|
// The device config property overrides the system property version.
|
||||||
boolean profileBootClassPath = SystemProperties.getBoolean(
|
boolean profileBootClassPath = SystemProperties.getBoolean(
|
||||||
"persist.device_config.runtime_native_boot.profilebootclasspath",
|
"persist.device_config.runtime_native_boot.profilebootclasspath",
|
||||||
SystemProperties.getBoolean("dalvik.vm.profilebootclasspath", false));
|
SystemProperties.getBoolean("dalvik.vm.profilebootclasspath", false));
|
||||||
return (Build.IS_USERDEBUG || Build.IS_ENG) &&
|
return (Build.IS_USERDEBUG || Build.IS_ENG) && profileBootClassPath;
|
||||||
SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false) &&
|
|
||||||
profileBootClassPath;
|
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Invalid profile type:" + profileType);
|
throw new IllegalArgumentException("Invalid profile type:" + profileType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user