Commit a653c26a authored by Agi Sferro's avatar Agi Sferro
Browse files

Bug 1755385 - Drop non-content process priority to IDLE when backgrounding. r=jonalmeida

BACKGROUND and FOREGROUND priority lead to the identical oom_adj value of 11
when the app is in the background. Because all non-content processes are
restartable without losing any state, we should prioritize them lower than the
current active tab, which will be prioritized to FOREGROUND when Bug 1753700 is
fixed.

Differential Revision: https://phabricator.services.mozilla.com/D138810
parent 04b0d47b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ public final class GeckoProcessManager extends IProcessManager.Stub {
    }

    protected void onAppBackground() {
      setPriorityLevel(PriorityLevel.BACKGROUND);
      setPriorityLevel(PriorityLevel.IDLE);
    }
  }