hotspot/src/share/vm/gc/shared/workgroup.hpp
changeset 40922 d9f1eaf18f9a
parent 40096 246c62cd9180
child 41178 e567be097315
equal deleted inserted replaced
40921:cc129ac8e609 40922:d9f1eaf18f9a
   160     assert(v <= _total_workers,
   160     assert(v <= _total_workers,
   161            "Trying to set more workers active than there are");
   161            "Trying to set more workers active than there are");
   162     _active_workers = MIN2(v, _total_workers);
   162     _active_workers = MIN2(v, _total_workers);
   163     add_workers(false /* exit_on_failure */);
   163     add_workers(false /* exit_on_failure */);
   164     assert(v != 0, "Trying to set active workers to 0");
   164     assert(v != 0, "Trying to set active workers to 0");
   165     log_info(gc, task)("GC Workers: using %d out of %d", _active_workers, _total_workers);
   165     log_trace(gc, task)("%s: using %d out of %d workers", name(), _active_workers, _total_workers);
   166     return _active_workers;
   166     return _active_workers;
   167   }
   167   }
   168 
   168 
   169   // Add GC workers as needed.
   169   // Add GC workers as needed.
   170   void add_workers(bool initializing);
   170   void add_workers(bool initializing);