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

Commit 5b009d52 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev

parents b492ced8 a73b68fb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5840,7 +5840,10 @@ public final class ActivityManagerService extends ActivityManagerNative
        // We shouldn't already have a process under this name, but just in case we
        // need to clean up whatever may be there now.
        ProcessRecord old = removeProcessNameLocked(proc.processName, proc.uid);
        if (old != null) {
        if (old == proc && proc.persistent) {
            // We are re-adding a persistent process.  Whatevs!  Just leave it there.
            Slog.w(TAG, "Re-adding persistent process " + proc);
        } else if (old != null) {
            Slog.wtf(TAG, "Already have existing proc " + old + " when adding " + proc);
        }
        UidRecord uidRec = mActiveUids.get(proc.uid);