Add the missing lock on the process start timeout handling

Bug: 231941936
Bug: 226712203
Test: Manual
Change-Id: Ia2c96fc5a73a7c946f01a308f57530c6a900946a
This commit is contained in:
Jing Ji
2022-05-09 14:38:59 -07:00
parent a7f5aa5be7
commit b211358b1d

View File

@@ -2028,8 +2028,10 @@ public final class ProcessList {
mService.mProcessList.handlePredecessorProcDied((ProcessRecord) msg.obj);
break;
case MSG_PROCESS_KILL_TIMEOUT:
mService.handleProcessStartOrKillTimeoutLocked((ProcessRecord) msg.obj,
/* isKillTimeout */ true);
synchronized (mService) {
mService.handleProcessStartOrKillTimeoutLocked((ProcessRecord) msg.obj,
/* isKillTimeout */ true);
}
break;
}
}