summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.h
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2014-08-12 09:09:37 +0200
committerSebastien Hertz <shertz@google.com>2014-08-13 08:36:12 +0200
commit9ac5602c1f5829c994360674fea1055a738caa23 (patch)
tree9fa8ccecbfd12d82e1c8d681a2f0fdd0abb90fc4 /compiler/optimizing/graph_visualizer.h
parent6c6c6f6683cbbb180b8b8c8f55886b067320e1e8 (diff)
Fix crash in VirtualMachine.AllThreads JDWP command
When collecting all the started threads, we may encounter a thread in the process of being started from Java code (Thread.start) in the threads list. The crash occurs when we attempt to access the java.lang.Thread peer (calling Thread::GetPeer) but the JNI global reference to it (Thread::jpeer) has not been destroyed yet (which is verified with a check). This only happens when the thread is starting up. We now check the thread finished starting up before accessing the Java peer. This also prevents from returning non-started threads in the reply. Bug: 16660101 (cherry picked from commit a22d115711b5158cfc67b4f260a5b40f3ab303ca) Change-Id: Ib61dbd0b01f63bfdda708d3c93eac58284bbe236
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions