hotspot/src/share/vm/runtime/thread.cpp
changeset 46702 13ae789b982e
parent 46701 f559541c0daa
child 46732 05423d4b10d2
--- a/hotspot/src/share/vm/runtime/thread.cpp	Fri Jul 21 09:50:12 2017 +0200
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri Jul 07 12:49:11 2017 +0200
@@ -3385,6 +3385,15 @@
   // If CompilerThreads ever become non-JavaThreads, add them here
 }
 
+void Threads::parallel_java_threads_do(ThreadClosure* tc) {
+  int cp = Threads::thread_claim_parity();
+  ALL_JAVA_THREADS(p) {
+    if (p->claim_oops_do(true, cp)) {
+      tc->do_thread(p);
+    }
+  }
+}
+
 // The system initialization in the library has three phases.
 //
 // Phase 1: java.lang.System class initialization