Revert "Revert "Clear BPF data in KernelCpuUidTimeReader.removeUid()""

This reverts commit 0648bad1b6.

Reason for revert: commit 0208449c3b ("Defer UID data removal until after reading is finished") has now been merged to remove the deadlock that required reverting.

Bug: 177011744
Bug: 174739872
Change-Id: I4fc120dc4410e21327700cb62900b3991ec981ec
This commit is contained in:
Connor O'Brien
2021-02-24 00:37:10 +00:00
parent 6faddabeb7
commit dbcba76509

View File

@@ -143,6 +143,10 @@ public abstract class KernelCpuUidTimeReader<T> {
*/
public void removeUid(int uid) {
mLastTimes.delete(uid);
if (mBpfTimesAvailable) {
mBpfReader.removeUidsInRange(uid, uid);
}
}
/**