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

Commit 1101fe90 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: Ic484992d0da84d6e770a22019e9e23b57759d3d6
parents 0dd52d20 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);
        }