< prev index next >
src/share/vm/gc/shared/workgroup.cpp
Print this page
rev 11508 : [mq]: 8157240
@@ -64,18 +64,29 @@
if (are_ConcurrentGC_threads()) {
worker_type = os::cgc_thread;
} else {
worker_type = os::pgc_thread;
}
+ uint previous_created_workers = _created_workers;
_created_workers = WorkerManager::add_workers(this,
active_workers,
_total_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* AbstractWorkGang::worker_name(uint which) {
+ if (worker(which) != NULL) {
+ return worker(which)->name();
+ } else {
+ return NULL;
+ }
}
AbstractGangWorker* AbstractWorkGang::worker(uint i) const {
// Array index bounds checking.
AbstractGangWorker* result = NULL;
< prev index next >