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
This commit is contained in:
Agi Sferro 2022-02-15 16:07:47 +00:00
Родитель 04b0d47b9e
Коммит a653c26a57
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -307,7 +307,7 @@ public final class GeckoProcessManager extends IProcessManager.Stub {
}
protected void onAppBackground() {
setPriorityLevel(PriorityLevel.BACKGROUND);
setPriorityLevel(PriorityLevel.IDLE);
}
}