< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page
rev 55936 : [mq]: 8229212.cr0
rev 55937 : 8229212: clear up CHECK_OWNER confusion in objectMonitor.cpp
Reviewed-by: dholmes

*** 430,440 **** ObjectMonitor* monitor = inflate(THREAD, obj, inflate_cause_jni_exit); // If this thread has locked the object, exit the monitor. We // intentionally do not use CHECK here because we must exit the // monitor even if an exception is pending. ! if (monitor->check_owner_and_throw_IMSE_if_not(THREAD)) { monitor->exit(true, THREAD); } } // ----------------------------------------------------------------------------- --- 430,440 ---- ObjectMonitor* monitor = inflate(THREAD, obj, inflate_cause_jni_exit); // If this thread has locked the object, exit the monitor. We // intentionally do not use CHECK here because we must exit the // monitor even if an exception is pending. ! if (monitor->check_owner(THREAD)) { monitor->exit(true, THREAD); } } // -----------------------------------------------------------------------------
< prev index next >