summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2016-03-18 17:17:52 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2016-03-18 17:33:24 -0700
commit6f0c6cdae6962532c4699df9dd5af6289b86d1c6 (patch)
treea3659d13b6b7f043b18f99536684a96e1e1e2971 /compiler/optimizing/graph_visualizer.cc
parent38ceb62339514a8012695673b9e1110d13546f02 (diff)
Fix a CC 145-alloc-tracking-stress deadlock.
When the allocation tracking gets disabled, there may be threads blocking on the system weak access for recording allocations, but when GC reenables the system weak access, it fails to wake up those blocked threads (which causes a deadlock) because the broadcast call is guarded by Heap::IsAllocTrackingEnabled(), which is false at this point. Broadcast in Heap::BroadcastForNewAllocationRecords() regardless of Heap::IsAllocTrackingEnabled(), which is safe. Also apply a similar fix for the non-CC case. Bug: 27467554 Change-Id: I74cf88bceb306589ce11a19a688be223e099e88a
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions