diff -r 33fe50b6d707 -r cf94f5c214f6 src/hotspot/share/runtime/thread.cpp --- a/src/hotspot/share/runtime/thread.cpp Fri May 10 09:05:29 2019 -0400 +++ b/src/hotspot/share/runtime/thread.cpp Fri May 10 09:07:53 2019 -0400 @@ -3194,8 +3194,7 @@ oop JavaThread::current_park_blocker() { // Support for JSR-166 locks oop thread_oop = threadObj(); - if (thread_oop != NULL && - JDK_Version::current().supports_thread_park_blocker()) { + if (thread_oop != NULL) { return java_lang_Thread::park_blocker(thread_oop); } return NULL; @@ -4011,13 +4010,11 @@ RTMLockingCounters::init(); #endif - if (JDK_Version::current().post_vm_init_hook_enabled()) { - call_postVMInitHook(THREAD); - // The Java side of PostVMInitHook.run must deal with all - // exceptions and provide means of diagnosis. - if (HAS_PENDING_EXCEPTION) { - CLEAR_PENDING_EXCEPTION; - } + call_postVMInitHook(THREAD); + // The Java side of PostVMInitHook.run must deal with all + // exceptions and provide means of diagnosis. + if (HAS_PENDING_EXCEPTION) { + CLEAR_PENDING_EXCEPTION; } {