< prev index next >

src/hotspot/share/prims/jvmtiRawMonitor.cpp

Print this page
rev 51675 : imported patch 8210514

*** 262,272 **** return OS_OK ; } // Any JavaThread will enter here with state _thread_blocked int JvmtiRawMonitor::raw_enter(TRAPS) { - TEVENT (raw_enter) ; void * Contended ; // don't enter raw monitor if thread is being externally suspended, it will // surprise the suspender if a "suspended" thread can still enter monitor JavaThread * jt = (JavaThread *)THREAD; --- 262,271 ----
*** 339,349 **** } // Used mainly for JVMTI raw monitor implementation // Also used for JvmtiRawMonitor::wait(). int JvmtiRawMonitor::raw_exit(TRAPS) { - TEVENT (raw_exit) ; if (THREAD != _owner) { return OM_ILLEGAL_MONITOR_STATE; } if (_recursions > 0) { --_recursions ; --- 338,347 ----
*** 358,368 **** // Used for JVMTI raw monitor implementation. // All JavaThreads will enter here with state _thread_blocked int JvmtiRawMonitor::raw_wait(jlong millis, bool interruptible, TRAPS) { - TEVENT (raw_wait) ; if (THREAD != _owner) { return OM_ILLEGAL_MONITOR_STATE; } // To avoid spurious wakeups we reset the parkevent -- This is strictly optional. --- 356,365 ----
*** 404,423 **** } return OM_OK ; } int JvmtiRawMonitor::raw_notify(TRAPS) { - TEVENT (raw_notify) ; if (THREAD != _owner) { return OM_ILLEGAL_MONITOR_STATE; } SimpleNotify (THREAD, false) ; return OM_OK; } int JvmtiRawMonitor::raw_notifyAll(TRAPS) { - TEVENT (raw_notifyAll) ; if (THREAD != _owner) { return OM_ILLEGAL_MONITOR_STATE; } SimpleNotify (THREAD, true) ; return OM_OK; --- 401,418 ----
< prev index next >