diff options
author | 2023-04-03 15:07:52 +0000 | |
---|---|---|
committer | 2023-04-04 10:45:15 +0000 | |
commit | bd10861f33fcc1a1e7ddae3c48eb452a398e74a4 (patch) | |
tree | dbf594288c3e6b2e2d199798f7acafa8bbbc82a9 /compiler/optimizing/code_generator.h | |
parent | 88b9d89098a2556f39a104ffe389f38d2ecfc3a6 (diff) |
Fix a race when dumping thread list for tracing
We may miss recording information about thread if a thread exits after
resetting the the_trace_ but before dumping the thread information. We
record the information about exiting threads when the_trace_ is active
but not after resetting the_trace_. So record the list of threads before
resetting the_trace_.
Use Put instead of Overwrite to record thread id -> thread name mapping.
Earlier due to the race we allowed overwrite which is no longer needed.
Also enable the non-stream trace which was failing because of the above
mentioned race.
Bug: 275117853
Test: art/test.py -t 2246
Change-Id: Ic8cab3297b9f9b5815dc080965d0326b42192f05
Diffstat (limited to 'compiler/optimizing/code_generator.h')
0 files changed, 0 insertions, 0 deletions