OSDN Git Service

Avoid accessing the heap without mutator lock in Monitor::Lock.
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 26 Jan 2017 02:28:12 +0000 (18:28 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 26 Jan 2017 02:53:51 +0000 (18:53 -0800)
commit71cd68d36f024d6c8ccfc8bc9d196a8f86e6cf7d
treed59739ac2520f6d400c81631d8198c071723b7fa
parent7510dcb0435e6c3f1da1d329bde3cf0274bc7da8
Avoid accessing the heap without mutator lock in Monitor::Lock.

ScopedThreadStateTransition doesn't do annotations and we are
accidentally accessing the heap without holding the mutator lock in
Monitor::PrettyContentionInfo. Use ScopedThreadSuspension instead.

Bug: 34674595
Test: test-art-host

Change-Id: If3ec86429ff99405ab14b3588f192ab1c0472cc8
runtime/monitor.cc