Merge "Validate the ProcessRecord prior to insert to LRU list" into sc-dev
This commit is contained in:
@@ -3418,6 +3418,11 @@ public final class ProcessList {
|
||||
return;
|
||||
}
|
||||
|
||||
if (app.getPid() == 0 && !app.isPendingStart()) {
|
||||
// This process has been killed and its cleanup is done, don't proceed the LRU update.
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (mProcLock) {
|
||||
updateLruProcessLSP(app, client, hasActivity, hasService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user