Merge "Acquire proc lock prior to the call into AM service connection holder" into sc-dev
This commit is contained in:
@@ -15656,9 +15656,11 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
final ActivityServiceConnectionsHolder holder =
|
final ActivityServiceConnectionsHolder holder =
|
||||||
(ActivityServiceConnectionsHolder) connectionHolder;
|
(ActivityServiceConnectionsHolder) connectionHolder;
|
||||||
synchronized (ActivityManagerService.this) {
|
synchronized (ActivityManagerService.this) {
|
||||||
holder.forEachConnection(cr -> mServices.removeConnectionLocked(
|
synchronized (mProcLock) {
|
||||||
(ConnectionRecord) cr, null /* skipApp */, holder /* skipAct */,
|
holder.forEachConnection(cr -> mServices.removeConnectionLocked(
|
||||||
false /* enqueueOomAdj */));
|
(ConnectionRecord) cr, null /* skipApp */, holder /* skipAct */,
|
||||||
|
false /* enqueueOomAdj */));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user