--- old/src/hotspot/share/services/management.cpp 2018-05-31 22:45:15.308810753 -0400 +++ new/src/hotspot/share/services/management.cpp 2018-05-31 22:45:13.676716237 -0400 @@ -1081,9 +1081,6 @@ "The length of the given ThreadInfo array does not match the length of the given array of thread IDs", -1); } - // make sure the AbstractOwnableSynchronizer klass is loaded before taking thread snapshots - java_util_concurrent_locks_AbstractOwnableSynchronizer::initialize(CHECK_0); - // Must use ThreadDumpResult to store the ThreadSnapshot. // GC may occur after the thread snapshots are taken but before // this function returns. The threadObj and other oops kept @@ -1154,9 +1151,6 @@ jboolean locked_synchronizers, jint maxDepth)) ResourceMark rm(THREAD); - // make sure the AbstractOwnableSynchronizer klass is loaded before taking thread snapshots - java_util_concurrent_locks_AbstractOwnableSynchronizer::initialize(CHECK_NULL); - typeArrayOop ta = typeArrayOop(JNIHandles::resolve(thread_ids)); int num_threads = (ta != NULL ? ta->length() : 0); typeArrayHandle ids_ah(THREAD, ta);