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