Merge "Reduce lock contention, removing unnecessary synchronization." into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
11bea2e216
@@ -6141,12 +6141,10 @@ 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) {
|
||||
}
|
||||
try {
|
||||
PendingIntentRecord res = (PendingIntentRecord)pendingResult;
|
||||
return res.key.packageName;
|
||||
} catch (ClassCastException e) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user