Disable USAP when running in jitzygote mode.

The feature needs to be tweaked for it, and currently
regresses app startup.

Test: build jitzygote config, check there is no usap processes
Bug: 119800099
Change-Id: Ic33c539636f206da72d6d0cc51219e8d2dfe23dc
This commit is contained in:
Nicolas Geoffray
2019-04-10 14:58:17 +01:00
parent 46ea5598a4
commit fd00e94dd1

View File

@@ -646,9 +646,14 @@ public class ZygoteProcess {
ZygoteConfig.USAP_POOL_ENABLED, USAP_POOL_ENABLED_DEFAULT);
if (!propertyString.isEmpty()) {
mUsapPoolEnabled = Zygote.getConfigurationPropertyBoolean(
if (SystemProperties.get("dalvik.vm.boot-image", "").endsWith("apex.art")) {
// TODO(b/119800099): Tweak usap configuration in jitzygote mode.
mUsapPoolEnabled = false;
} else {
mUsapPoolEnabled = Zygote.getConfigurationPropertyBoolean(
ZygoteConfig.USAP_POOL_ENABLED,
Boolean.parseBoolean(USAP_POOL_ENABLED_DEFAULT));
}
}
boolean valueChanged = origVal != mUsapPoolEnabled;