DO NOT MERGE Guard against null entries in process list during updateOomAdjLocked am: 84aa5a864f
am: 36008dd6bd
Change-Id: Ia7e636049d4a3a0490013a54ffb90d7f4f534949
This commit is contained in:
@@ -21035,6 +21035,9 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
int nextEmptyAdj = curEmptyAdj+2;
|
||||
for (int i=N-1; i>=0; i--) {
|
||||
ProcessRecord app = mLruProcesses.get(i);
|
||||
if (app == null) {
|
||||
continue;
|
||||
}
|
||||
if (!app.killedByAm && app.thread != null) {
|
||||
app.procStateChanged = false;
|
||||
computeOomAdjLocked(app, ProcessList.UNKNOWN_ADJ, TOP_APP, true, now);
|
||||
@@ -21210,6 +21213,9 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
int curLevel = ComponentCallbacks2.TRIM_MEMORY_COMPLETE;
|
||||
for (int i=N-1; i>=0; i--) {
|
||||
ProcessRecord app = mLruProcesses.get(i);
|
||||
if (app == null) {
|
||||
continue;
|
||||
}
|
||||
if (allChanged || app.procStateChanged) {
|
||||
setProcessTrackerStateLocked(app, trackerMemFactor, now);
|
||||
app.procStateChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user