hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 30147 af9a41999c6e
parent 29804 dcb9861190d2
child 30152 5fe1c8494b49
equal deleted inserted replaced
29809:c59a5f161524 30147:af9a41999c6e
   604   // Don't process them if they will be processed during the ClassLoaderDataGraph phase.
   604   // Don't process them if they will be processed during the ClassLoaderDataGraph phase.
   605   CLDClosure* roots_from_clds_p = (strong_cld_closure != weak_cld_closure) ? strong_cld_closure : NULL;
   605   CLDClosure* roots_from_clds_p = (strong_cld_closure != weak_cld_closure) ? strong_cld_closure : NULL;
   606   // Only process code roots from thread stacks if we aren't visiting the entire CodeCache anyway
   606   // Only process code roots from thread stacks if we aren't visiting the entire CodeCache anyway
   607   CodeBlobClosure* roots_from_code_p = (so & SO_AllCodeCache) ? NULL : code_roots;
   607   CodeBlobClosure* roots_from_code_p = (so & SO_AllCodeCache) ? NULL : code_roots;
   608 
   608 
   609   Threads::possibly_parallel_oops_do(strong_roots, roots_from_clds_p, roots_from_code_p);
   609   bool is_par = n_par_threads() > 0;
       
   610   Threads::possibly_parallel_oops_do(is_par, strong_roots, roots_from_clds_p, roots_from_code_p);
   610 
   611 
   611   if (!_process_strong_tasks->is_task_claimed(GCH_PS_Universe_oops_do)) {
   612   if (!_process_strong_tasks->is_task_claimed(GCH_PS_Universe_oops_do)) {
   612     Universe::oops_do(strong_roots);
   613     Universe::oops_do(strong_roots);
   613   }
   614   }
   614   // Global (strong) JNI handles
   615   // Global (strong) JNI handles