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:
Simon Bowden
2021-11-15 12:32:55 +00:00
parent b22de4e632
commit 4a7bb14cd5

View File

@@ -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);