equal
deleted
inserted
replaced
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); |