Merge "Fix a regression in setting oom_adj for cached processes" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4025715b3e
@@ -431,7 +431,7 @@ public final class OomAdjuster {
|
|||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
ProcessRecord app = mProcessList.mLruProcesses.get(i);
|
ProcessRecord app = mProcessList.mLruProcesses.get(i);
|
||||||
if (!app.killedByAm && app.thread != null && app.containsCycle == true) {
|
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)) {
|
true)) {
|
||||||
retryCycles = true;
|
retryCycles = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user