Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05b4d0d1 authored by Jing Ji's avatar Jing Ji Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ia244518efcf56a44df03129eb1a7573a70a90868
parents 393d5343 7cf0ac50
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
        }