diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-17 15:49:56 -0800 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-17 19:29:10 -0800 |
commit | a1b94c6d06e3cf2aa4f3aa42a1133995a4d8a1fb (patch) | |
tree | f17b6e4a2182a1678a0a52f6728ed1624ec1d1a9 /compiler/optimizing/graph_visualizer.cc | |
parent | e9231c0aecc013c61b6cf7f88a228204651d4d41 (diff) |
Fix a race condition during the rosalloc verification.
Since an exiting thread could revoke its thread-local runs without
holding the mutator lock, when rosalloc verification is running at a
pause, the thread could concurrently modify runs and cause a race
condition/verification check failure.
Now an exiting thread acquires the mutator lock when it revokes its
thread-local runs, which should avoid the race condition.
Bug: 18734151
Bug: 18577084
Change-Id: Ic8af558b96dff6fb6f5ace65351e2824a6ff4629
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions