Revert "Fix race conditions in removing dying process record"
This reverts commit b22de4e632.
Reason for revert: Breaks com.android.devicehealthchecks.SystemAppCheck#system_app_anr, see b/206336727
Change-Id: I080deb09582c8479b78f5c8a1d1ac07c4e0cdf12
This commit is contained in:
@@ -5143,8 +5143,7 @@ public final class ProcessList {
|
||||
}
|
||||
|
||||
Watchdog.getInstance().processDied(app.processName, app.getPid());
|
||||
if (app.getDeathRecipient() == null
|
||||
&& mDyingProcesses.get(app.processName, app.uid) == app) {
|
||||
if (app.getDeathRecipient() == null) {
|
||||
// If we've done unlinkDeathRecipient before calling into this, remove from dying list.
|
||||
mDyingProcesses.remove(app.processName, app.uid);
|
||||
app.setDyingPid(0);
|
||||
|
||||
Reference in New Issue
Block a user