Merge "Revert "Fix race conditions in removing dying process record""

This commit is contained in:
Oriol Prieto Gasco
2021-11-15 18:12:43 +00:00
committed by Android (Google) Code Review

View File

@@ -5144,8 +5144,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);