--- a/src/hotspot/share/services/management.cpp Tue Jun 05 21:38:38 2018 +0200
+++ b/src/hotspot/share/services/management.cpp Tue Jun 05 19:58:20 2018 -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);