hotspot/src/share/vm/runtime/thread.cpp
changeset 46702 13ae789b982e
parent 46701 f559541c0daa
child 46732 05423d4b10d2
equal deleted inserted replaced
46701:f559541c0daa 46702:13ae789b982e
  3383   }
  3383   }
  3384 
  3384 
  3385   // If CompilerThreads ever become non-JavaThreads, add them here
  3385   // If CompilerThreads ever become non-JavaThreads, add them here
  3386 }
  3386 }
  3387 
  3387 
       
  3388 void Threads::parallel_java_threads_do(ThreadClosure* tc) {
       
  3389   int cp = Threads::thread_claim_parity();
       
  3390   ALL_JAVA_THREADS(p) {
       
  3391     if (p->claim_oops_do(true, cp)) {
       
  3392       tc->do_thread(p);
       
  3393     }
       
  3394   }
       
  3395 }
       
  3396 
  3388 // The system initialization in the library has three phases.
  3397 // The system initialization in the library has three phases.
  3389 //
  3398 //
  3390 // Phase 1: java.lang.System class initialization
  3399 // Phase 1: java.lang.System class initialization
  3391 //     java.lang.System is a primordial class loaded and initialized
  3400 //     java.lang.System is a primordial class loaded and initialized
  3392 //     by the VM early during startup.  java.lang.System.<clinit>
  3401 //     by the VM early during startup.  java.lang.System.<clinit>