diff options
author | Alex Light <allight@google.com> | 2017-10-04 16:57:36 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2017-10-18 17:01:37 -0700 |
commit | b1e31a8337b9cce2f3160a972123886b355dce27 (patch) | |
tree | 30413acc04bd03c385b3b6023e332ecc535ff4ee /compiler/optimizing/graph_visualizer.cc | |
parent | 8cdfac752808784d29185710095ad104922cd861 (diff) |
Change RequestSynchronousCheckpoint to release thread_list_lock_
The RequestSynchronousCheckpoint function in some cases needs to
release the thread_list_lock_ as it waits for a checkpoint to be
executed. This means that the thread being checkpointed might be
deleted. Previously it was not obvious this was the case since the
thread_list_lock_ seemed to be held throughout the execution of the
method.
In order to prevent bugs we make RequestSynchronousCheckpoint
explicitly release the thread_list_lock_ when executed, meaning code
will be aware that threads might die during its execution.
Bug: 67362832
Test: ./test.py --host -j50
Change-Id: I1cbdf7660096dc1908b0eeabc1062447307bc888
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions