am bb9739c5: am 11bea2e2: Merge "Reduce lock contention, removing unnecessary synchronization." into froyo
Merge commit 'bb9739c5d74404b9155565f2a08509079b719a22' into kraken * commit 'bb9739c5d74404b9155565f2a08509079b719a22': Reduce lock contention, removing unnecessary synchronization.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user