hotspot/src/share/vm/memory/cardTableModRefBS.cpp
changeset 30147 af9a41999c6e
parent 29805 398335f2abed
child 30152 5fe1c8494b49
equal deleted inserted replaced
29809:c59a5f161524 30147:af9a41999c6e
   457     // active gc workers.  If parallelism has not been shut off by
   457     // active gc workers.  If parallelism has not been shut off by
   458     // setting n_par_threads to 0, then n_par_threads should be
   458     // setting n_par_threads to 0, then n_par_threads should be
   459     // equal to active_workers.  When a different mechanism for shutting
   459     // equal to active_workers.  When a different mechanism for shutting
   460     // off parallelism is used, then active_workers can be used in
   460     // off parallelism is used, then active_workers can be used in
   461     // place of n_par_threads.
   461     // place of n_par_threads.
   462     int n_threads =  SharedHeap::heap()->n_par_threads();
   462     int n_threads =  GenCollectedHeap::heap()->n_par_threads();
   463     bool is_par = n_threads > 0;
   463     bool is_par = n_threads > 0;
   464     if (is_par) {
   464     if (is_par) {
   465 #if INCLUDE_ALL_GCS
   465 #if INCLUDE_ALL_GCS
   466       assert(SharedHeap::heap()->n_par_threads() ==
   466       assert(GenCollectedHeap::heap()->n_par_threads() ==
   467              SharedHeap::heap()->workers()->active_workers(), "Mismatch");
   467              GenCollectedHeap::heap()->workers()->active_workers(), "Mismatch");
   468       non_clean_card_iterate_parallel_work(sp, mr, cl, ct, n_threads);
   468       non_clean_card_iterate_parallel_work(sp, mr, cl, ct, n_threads);
   469 #else  // INCLUDE_ALL_GCS
   469 #else  // INCLUDE_ALL_GCS
   470       fatal("Parallel gc not supported here.");
   470       fatal("Parallel gc not supported here.");
   471 #endif // INCLUDE_ALL_GCS
   471 #endif // INCLUDE_ALL_GCS
   472     } else {
   472     } else {