equal
deleted
inserted
replaced
384 return new_worker; |
384 return new_worker; |
385 } |
385 } |
386 |
386 |
387 void GCTaskManager::add_workers(bool initializing) { |
387 void GCTaskManager::add_workers(bool initializing) { |
388 os::ThreadType worker_type = os::pgc_thread; |
388 os::ThreadType worker_type = os::pgc_thread; |
|
389 uint previous_created_workers = _created_workers; |
|
390 |
389 _created_workers = WorkerManager::add_workers(this, |
391 _created_workers = WorkerManager::add_workers(this, |
390 _active_workers, |
392 _active_workers, |
391 (uint) _workers, |
393 _workers, |
392 _created_workers, |
394 _created_workers, |
393 worker_type, |
395 worker_type, |
394 initializing); |
396 initializing); |
395 _active_workers = MIN2(_created_workers, _active_workers); |
397 _active_workers = MIN2(_created_workers, _active_workers); |
|
398 |
|
399 WorkerManager::log_worker_creation(this, previous_created_workers, _active_workers, _created_workers, initializing); |
|
400 } |
|
401 |
|
402 const char* GCTaskManager::group_name() { |
|
403 return "ParGC Thread"; |
396 } |
404 } |
397 |
405 |
398 void GCTaskManager::initialize() { |
406 void GCTaskManager::initialize() { |
399 if (TraceGCTaskManager) { |
407 if (TraceGCTaskManager) { |
400 tty->print_cr("GCTaskManager::initialize: workers: %u", workers()); |
408 tty->print_cr("GCTaskManager::initialize: workers: %u", workers()); |