summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2019-05-13 16:21:45 -0700
committerAlex Light <allight@google.com>2019-05-15 18:17:00 +0000
commit9942687cdc862d792a6935db0c95bab106a120ed (patch)
treef99b4cdfb3ab3e81b947839481e7fcaaf6af1a9c /compiler/optimizing/graph_visualizer.cc
parent617df6694d86482ddd9340d7b4896429726e13d1 (diff)
Call ReferenceQueue add outside of active GC block
We were calling ReferenceQueue.add within the runtime GC active block. This caused java code to be run and could (potentially) cause deadlocks with JVMTI and debuggers. To fix this we collect the cleared references during the GC and only enqueue them after FinishGC. Test: ./test.py --host Test: atest CtsJdwpTunnelHostTestCases # with goldfish emulator Test: ./art/tools/run-libjdwp-tests.sh --mode=host Bug: 132460313 (cherry picked from commit e302088f50244f10c90e5f40b6e05c9574c4cf32) Merged-In: I276870096fb60a06afba7f850325d06709227b8e Change-Id: I276870096fb60a06afba7f850325d06709227b8e
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions