Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 851813ad authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Skip duplicated ANR before enqueuing

Although ProcessErrorStateRecord#appNotResponding has similar condition
to check isNotResponding, it may not cover all cases which depends on
the timing to set the flag, especially if there are multiple ANR records
for the same process.

It also reduces the race while an ANR record is dequeued but the process
may be killed or restarted before dumping stacktrace.

Bug: 218840177
Test: atest AnrHelperTest#testSkipDuplicatedAnr
Change-Id: I10dd6678c2d288b6526cf97bf82e24f052fd89f5
parent cdd2a77e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment