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

Commit db4ff9ef authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Acquire proc lock prior to the call into AM service connection holder" into sc-dev

parents e7c7e614 b53ff45a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -15656,11 +15656,13 @@ public class ActivityManagerService extends IActivityManager.Stub
            final ActivityServiceConnectionsHolder holder =
                    (ActivityServiceConnectionsHolder) connectionHolder;
            synchronized (ActivityManagerService.this) {
                synchronized (mProcLock) {
                    holder.forEachConnection(cr -> mServices.removeConnectionLocked(
                            (ConnectionRecord) cr, null /* skipApp */, holder /* skipAct */,
                            false /* enqueueOomAdj */));
                }
            }
        }
        public void cleanUpServices(int userId, ComponentName component, Intent baseIntent) {
            synchronized(ActivityManagerService.this) {