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

Commit 11bea2e2 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android (Google) Code Review
Browse files

Merge "Reduce lock contention, removing unnecessary synchronization." into froyo

parents 99c5179f b213d103
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;
    }