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

Commit 050a6824 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: I238c458cee7f21554186e1a84f61700c6fa60821
parents 508a47b5 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);
        }