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

Commit 961ade61 authored by Shai Barack's avatar Shai Barack Committed by Android (Google) Code Review
Browse files

Revert "Sleep in ZygoteProcess.start() if ablation study enabled"

This reverts commit 5fad1b4f.

Reason for revert: study concluded, see b/423047108#comment23

Bug: 423047108
Change-Id: Id8e3cb7381f1e76b43ade52b7223e096ae38714f
parent 5fad1b4f
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -360,17 +360,6 @@ public class ZygoteProcess {
                                                  boolean bindMountAppStorageDirs,
                                                  boolean bindOverrideSysprops,
                                                  @Nullable String[] zygoteArgs) {
        if (Flags.zygoteAppLaunchLatencyAblation()) {
            final long sleepUntilMs = System.currentTimeMillis() + 5;
            long nextSleepMs = 5;
            while (nextSleepMs > 0) {
                try {
                    Thread.sleep(nextSleepMs);
                } catch (InterruptedException ignored) {}
                nextSleepMs = sleepUntilMs - System.currentTimeMillis();
            }
        }

        // TODO (chriswailes): Is there a better place to check this value?
        if (fetchUsapPoolEnabledPropWithMinInterval()) {
            informZygotesOfUsapPoolStatus();