OSDN Git Service

Add jdwp event_list_lock_ to expected_mutexes_on_weak_ref_access_.
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 23 Feb 2017 02:06:55 +0000 (18:06 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 23 Feb 2017 02:06:55 +0000 (18:06 -0800)
commit35b456a05af864da6580dd01c033efb0ed3e3e44
tree8b84cac89a86ca3eb015a697ce6e42efed541899
parentfbf7dd9f86cdea46e10e018e73292d5cd9a984d9
Add jdwp event_list_lock_ to expected_mutexes_on_weak_ref_access_.

To avoid a DCHECK failure where event_list_lock_ is unexpectedly held
during a weak ref access.

Also move event_list_lock to Locks.

Bug: 35360959
Test: test-art-host.
Test: jdwp test.
Change-Id: I6315e1f7152058656f2479ad7b4e4f3defd15555
runtime/base/mutex.cc
runtime/base/mutex.h
runtime/jdwp/jdwp.h
runtime/jdwp/jdwp_event.cc
runtime/jdwp/jdwp_main.cc