Merge "Validate the ProcessRecord prior to insert to LRU list" into sc-dev am: 7cf0ac5025

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14447603

Change-Id: Ia244518efcf56a44df03129eb1a7573a70a90868
This commit is contained in:
Jing Ji
2021-05-06 17:19:28 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}