< prev index next >
src/hotspot/share/runtime/mutex.cpp
Print this page
*** 155,176 ****
assert_owner(NULL);
_lock.unlock();
}
void Mutex::unlock() {
! assert_owner(Thread::current());
set_owner(NULL);
_lock.unlock();
}
void Monitor::notify() {
! assert_owner(Thread::current());
_lock.notify();
}
void Monitor::notify_all() {
! assert_owner(Thread::current());
_lock.notify_all();
}
#ifdef ASSERT
void Monitor::assert_wait_lock_state(Thread* self) {
--- 155,176 ----
assert_owner(NULL);
_lock.unlock();
}
void Mutex::unlock() {
! DEBUG_ONLY(assert_owner(Thread::current()));
set_owner(NULL);
_lock.unlock();
}
void Monitor::notify() {
! DEBUG_ONLY(assert_owner(Thread::current()));
_lock.notify();
}
void Monitor::notify_all() {
! DEBUG_ONLY(assert_owner(Thread::current()));
_lock.notify_all();
}
#ifdef ASSERT
void Monitor::assert_wait_lock_state(Thread* self) {
< prev index next >