am 11bea2e2: Merge "Reduce lock contention, removing unnecessary synchronization." into froyo

Merge commit '11bea2e216800c5612144f76d307da653d565be3' into froyo-plus-aosp

* commit '11bea2e216800c5612144f76d307da653d565be3':
  Reduce lock contention, removing unnecessary synchronization.
This commit is contained in:
Brad Fitzpatrick
2010-04-19 12:22:07 -07:00
committed by Android Git Automerger

View File

@@ -6141,12 +6141,10 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
if (!(pendingResult instanceof PendingIntentRecord)) { if (!(pendingResult instanceof PendingIntentRecord)) {
return null; return null;
} }
synchronized(this) { try {
try { PendingIntentRecord res = (PendingIntentRecord)pendingResult;
PendingIntentRecord res = (PendingIntentRecord)pendingResult; return res.key.packageName;
return res.key.packageName; } catch (ClassCastException e) {
} catch (ClassCastException e) {
}
} }
return null; return null;
} }