Merge "Fix a regression in setting oom_adj for cached processes" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-26 20:25:19 +00:00
committed by Android (Google) Code Review

View File

@@ -431,7 +431,7 @@ public final class OomAdjuster {
for (int i = 0; i < N; i++) {
ProcessRecord app = mProcessList.mLruProcesses.get(i);
if (!app.killedByAm && app.thread != null && app.containsCycle == true) {
if (computeOomAdjLocked(app, ProcessList.UNKNOWN_ADJ, TOP_APP, true, now,
if (computeOomAdjLocked(app, app.getCurRawAdj(), TOP_APP, true, now,
true)) {
retryCycles = true;
}