summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-04-03 15:07:52 +0000
committer Mythri Alle <mythria@google.com> 2023-04-04 10:45:15 +0000
commitbd10861f33fcc1a1e7ddae3c48eb452a398e74a4 (patch)
treedbf594288c3e6b2e2d199798f7acafa8bbbc82a9 /compiler/optimizing/code_generator.h
parent88b9d89098a2556f39a104ffe389f38d2ecfc3a6 (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