--- old/src/hotspot/share/runtime/mutex.cpp 2019-12-11 10:12:13.084217088 -0800 +++ new/src/hotspot/share/runtime/mutex.cpp 2019-12-11 10:12:12.812206852 -0800 @@ -157,18 +157,18 @@ } 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(); }