summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorElena Sayapina <elena.v.sayapina@intel.com>2014-06-20 16:58:37 +0700
committerAndreas Gampe <agampe@google.com>2014-07-07 18:39:55 -0700
commit1af6a1fa35ff7dc0a5c653f19dbc8a91c914aa42 (patch)
tree07807547760383cfe9310c70ea00eace03b2740b /compiler/optimizing/graph_visualizer.cc
parent13f89cb9930ea799c21559020da43c3845536da5 (diff)
ART: Update Monitor::Wait so it releases monitor_lock_ before throwing an exception
Thread should release monitor_lock_ Mutex (which guards shared structures behind Java monitor) in Monitor::Wait before throwing any exception. Otherwise the thread may be suspended by GC during that time still holding the lock. This may cause deadlock during GC in case some other thread needs to acquire the monitor_lock_. The other thread can't be suspended by GC then waiting for exclusive lock and "thread suspend timeout" occurs. Change-Id: Id02f45052e1cfc01e676a43434125817564d7874 Signed-off-by: Elena Sayapina <elena.v.sayapina@intel.com>
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions