< prev index next >
src/hotspot/share/runtime/mutex.cpp
Print this page
*** 874,884 ****
Self->clear_unhandled_oops();
}
#endif // CHECK_UNHANDLED_OOPS
debug_only(check_prelock_state(Self, StrictSafepointChecks));
! assert(_owner != Self, "this lock %s is already held by this thread", name());
assert(_OnDeck != Self->_MutexEvent, "invariant");
if (TryFast()) {
Exeunt:
assert(ILocked(), "invariant");
--- 874,884 ----
Self->clear_unhandled_oops();
}
#endif // CHECK_UNHANDLED_OOPS
debug_only(check_prelock_state(Self, StrictSafepointChecks));
! assert(_owner != Self, "invariant");
assert(_OnDeck != Self->_MutexEvent, "invariant");
if (TryFast()) {
Exeunt:
assert(ILocked(), "invariant");
< prev index next >