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>
Wed, 30 Nov 2016 08:59:56 +0000 (09:59 +0100)
commit2b25ca97ff20ab189567391e861dcd14204a1646
treef463d5f3f3f0e1ad83c6930f9b8ed982f4136023
parentb33635d2f9f7ffe10ba94dd1cc695897350d3e5e
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'

(cherry picked from commit af8bcf83535cd7bf5651ada2fb08a0ba9c5191d6)

Change-Id: Id2e4362393203935e820586560800b300c6dd3a3
runtime/jdwp/jdwp_event.cc