src/share/vm/runtime/thread.cpp

changeset 6992
2c6ef90f030a
parent 6973
4af19b914f53
child 7074
833b0f92429a
equal deleted inserted replaced
6991:882004b9e7e1 6992:2c6ef90f030a
4179 // root groups. Overhead should be small enough to use all the time, 4179 // root groups. Overhead should be small enough to use all the time,
4180 // even in sequential code. 4180 // even in sequential code.
4181 SharedHeap* sh = SharedHeap::heap(); 4181 SharedHeap* sh = SharedHeap::heap();
4182 // Cannot yet substitute active_workers for n_par_threads 4182 // Cannot yet substitute active_workers for n_par_threads
4183 // because of G1CollectedHeap::verify() use of 4183 // because of G1CollectedHeap::verify() use of
4184 // SharedHeap::process_strong_roots(). n_par_threads == 0 will 4184 // SharedHeap::process_roots(). n_par_threads == 0 will
4185 // turn off parallelism in process_strong_roots while active_workers 4185 // turn off parallelism in process_roots while active_workers
4186 // is being used for parallelism elsewhere. 4186 // is being used for parallelism elsewhere.
4187 bool is_par = sh->n_par_threads() > 0; 4187 bool is_par = sh->n_par_threads() > 0;
4188 assert(!is_par || 4188 assert(!is_par ||
4189 (SharedHeap::heap()->n_par_threads() == 4189 (SharedHeap::heap()->n_par_threads() ==
4190 SharedHeap::heap()->workers()->active_workers()), "Mismatch"); 4190 SharedHeap::heap()->workers()->active_workers()), "Mismatch");

mercurial