< prev index next >
src/share/vm/runtime/thread.cpp
Print this page
rev 13265 : 8180932: Parallelize safepoint cleanup
Summary: Provide infrastructure to do safepoint cleanup tasks using parallel worker threads
Reviewed-by: dholmes, rehn, dcubed, thartmann
@@ -3380,10 +3380,19 @@
}
// 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
// java.lang.System is a primordial class loaded and initialized
// by the VM early during startup. java.lang.System.<clinit>
< prev index next >