Merge "Avoid OOM Adj update for processes with fixed adj." into udc-dev

This commit is contained in:
Xin Guan
2023-05-22 18:24:23 +00:00
committed by Android (Google) Code Review

View File

@@ -837,7 +837,7 @@ public class OomAdjuster {
*/ */
@GuardedBy("mService") @GuardedBy("mService")
void enqueueOomAdjTargetLocked(ProcessRecord app) { void enqueueOomAdjTargetLocked(ProcessRecord app) {
if (app != null) { if (app != null && app.mState.getMaxAdj() > FOREGROUND_APP_ADJ) {
mPendingProcessSet.add(app); mPendingProcessSet.add(app);
} }
} }