Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e056276 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by Android (Google) Code Review
Browse files

Merge "Disable USAP when running in jitzygote mode." into qt-dev

parents fa1676bd fd00e94d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -646,10 +646,15 @@ public class ZygoteProcess {
                ZygoteConfig.USAP_POOL_ENABLED, USAP_POOL_ENABLED_DEFAULT);

        if (!propertyString.isEmpty()) {
            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;