summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Mohamad Mahmoud <mohamadmahmoud@google.com> 2023-05-31 12:00:04 +0000
committer Mohamad Mahmoud <mohamadmahmoud@google.com> 2023-05-31 13:07:41 +0000
commit5c7327ff2f9d926e3dd707527b01de96633385e1 (patch)
tree8390081a6b06261c3fbb6069fa87c231c8562f23 /libs/androidfw/FileStream.cpp
parentd31105e09f5fda68bd88beb962fd69286fc4af96 (diff)
Move dumpAnrStateAsync calls after inputDispatchingTimedOut and update the durations array
Reorder the calls to dumpAnrStateAsync, placing them after the execution of ActivityManagerService.InputDispatchingTimedOut. This adjustment prevents a potential race condition that could cause a significant delay in inputDispatchingTimedOut (and consequently, the generation of the first core dump in the ANR). By making this change, we ensure that the global window lock is held first by inputDispatchingTimedOut (in the call to WindowProcessController.getInputDispatchingTimeoutMillis) Test: Tested manually Bug: 272292150 Change-Id: If48a9e5e3af38cabe618750b7989318af3fd75c4
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions