diff -r 36ac7dfc2141 -r dbe471d2f8f8 src/hotspot/share/runtime/synchronizer.cpp --- a/src/hotspot/share/runtime/synchronizer.cpp Wed Jul 31 10:03:44 2019 +0200 +++ b/src/hotspot/share/runtime/synchronizer.cpp Wed Jul 31 06:37:13 2019 -0400 @@ -442,7 +442,7 @@ ObjectLocker::ObjectLocker(Handle obj, Thread* thread, bool doLock) { _dolock = doLock; _thread = thread; - debug_only(if (StrictSafepointChecks) _thread->check_for_valid_safepoint_state(false);) + _thread->check_for_valid_safepoint_state(false); _obj = obj; if (_dolock) {