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

Commit b213d103 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

Reduce lock contention, removing unnecessary synchronization.

The value returned is purely a function of what's passed in, all
following final members.

BUG=2606839

Change-Id: I506fb9b1f3be965576c2b3317a30ff1f990ccda3
parent afbf9f8d
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -6141,13 +6141,11 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
        if (!(pendingResult instanceof PendingIntentRecord)) {
            return null;
        }
        synchronized(this) {
        try {
            PendingIntentRecord res = (PendingIntentRecord)pendingResult;
            return res.key.packageName;
        } catch (ClassCastException e) {
        }
        }
        return null;
    }