OSDN Git Service

Fix event reporting from the debugger thread
authorSebastien Hertz <shertz@google.com>
Tue, 22 Nov 2016 13:55:04 +0000 (14:55 +0100)
committerSebastien Hertz <shertz@google.com>
Tue, 29 Nov 2016 10:51:03 +0000 (11:51 +0100)
commitaf8bcf83535cd7bf5651ada2fb08a0ba9c5191d6
treef029668c26269484652e9432fab3a246be81d2e7
parentda2d78ba97d177b80e0e9528362bcebc1fd31f0f
Fix event reporting from the debugger thread

The debugger thread may trigger events (like CLASS PREPARE after the
initalization of a class while processing a command).

This CL removes the incorrect CHECK that makes the runtime abort in
this case. However, we do check that only the debugger thread can
report an event while it is already processing a command.

Bug: 33032664
Test: art/tools/run-jdwp-tests.sh '--mode=host' '--variant=X64'
Change-Id: I32a284cfb4df6eb44eac27bbdcabd3c426d726ce
runtime/jdwp/jdwp_event.cc