< prev index next >

src/share/vm/gc/parallel/gcTaskManager.cpp

Print this page
rev 11508 : [mq]: 8157240

*** 384,400 **** --- 384,412 ---- return new_worker; } void GCTaskManager::add_workers(bool initializing) { os::ThreadType worker_type = os::pgc_thread; + uint previous_created_workers = _created_workers; + _created_workers = WorkerManager::add_workers(this, _active_workers, (uint) _workers, _created_workers, worker_type, initializing); _active_workers = MIN2(_created_workers, _active_workers); + + WorkerManager::log_worker_creation(this, previous_created_workers, _active_workers, _created_workers, initializing); + } + + char *GCTaskManager::worker_name(uint which) { + if (thread(which) != NULL) { + return thread(which)->name(); + } else { + return NULL; + } } void GCTaskManager::initialize() { if (TraceGCTaskManager) { tty->print_cr("GCTaskManager::initialize: workers: %u", workers());
< prev index next >