Don't remove the common processes from the procstats.resetSafely

As we're resetting it right after that, it doesn't make sense to
explicitly remove it.

Bug: 233563626
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Change-Id: Ibd12379a7678a60238af79f86e694e1dc3c97176
This commit is contained in:
Jing Ji
2022-05-23 10:47:52 -07:00
parent 7316c95946
commit 6fdb0de941

View File

@@ -607,7 +607,6 @@ public final class ProcessStats implements Parcelable {
}
} else {
ps.makeDead();
mUidStates.get(uids.keyAt(iu)).removeProcess(ps, now);
uids.removeAt(iu);
}
}