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

Commit 9abc6d09 authored by Nicolas Geoffray's avatar Nicolas Geoffray
Browse files

Remove time delay for usap process in jit zygote mode.

Not needed anymore now that all processes share the same JIT code.

Bug: 119800099
Test: boots
Change-Id: Icbc85e385f43c0dc1a273d6da271dfe47c8e12b8
parent 9cc96185
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -671,16 +671,6 @@ public class ZygoteProcess {
    private boolean fetchUsapPoolEnabledPropWithMinInterval() {
        final long currentTimestamp = SystemClock.elapsedRealtime();

        if (SystemProperties.get("dalvik.vm.boot-image", "").endsWith("apex.art")) {
            // TODO(b/119800099): In jitzygote mode, we want to start using USAP processes
            // only once the boot classpath has been compiled. There is currently no callback
            // from the runtime to notify the zygote about end of compilation, so for now just
            // arbitrarily start USAP processes 15 seconds after boot.
            if (currentTimestamp <= 15000) {
                return false;
            }
        }

        if (mIsFirstPropCheck
                || (currentTimestamp - mLastPropCheckTimestamp >= Zygote.PROPERTY_CHECK_INTERVAL)) {
            mIsFirstPropCheck = false;