< prev index next >

src/share/vm/gc/shared/workerManager.hpp

Print this page
rev 11508 : 8157240: GC task trace logging is incomprehensible
Reviewed-by: tschatzl
rev 11509 : imported patch code_review2

*** 56,66 **** uint end = MIN2(active_workers, total_workers); for (uint worker_id = start; worker_id < end; worker_id += 1) { WorkerThread* new_worker = holder->install_worker(worker_id); assert(new_worker != NULL, "Failed to allocate GangWorker"); if (new_worker == NULL || !os::create_thread(new_worker, worker_type)) { ! if(initializing) { vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create worker GC thread. Out of system resources."); } } created_workers++; --- 56,66 ---- uint end = MIN2(active_workers, total_workers); for (uint worker_id = start; worker_id < end; worker_id += 1) { WorkerThread* new_worker = holder->install_worker(worker_id); assert(new_worker != NULL, "Failed to allocate GangWorker"); if (new_worker == NULL || !os::create_thread(new_worker, worker_type)) { ! if (initializing) { vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create worker GC thread. Out of system resources."); } } created_workers++;
*** 77,87 **** uint active_workers, uint created_workers, bool initializing) { if (previous_created_workers < created_workers) { const char* initializing_msg = initializing ? "Adding initial" : "Creating additional"; ! log_trace(gc, task)("%s %s(s) active workers %u created workers %u", ! initializing_msg, holder->group_name(), active_workers, created_workers); } } }; #endif // SHARE_VM_GC_SHARED_WORKERMANAGER_HPP --- 77,87 ---- uint active_workers, uint created_workers, bool initializing) { if (previous_created_workers < created_workers) { const char* initializing_msg = initializing ? "Adding initial" : "Creating additional"; ! log_trace(gc, task)("%s %s(s) previously created workers %u active workers %u total created workers %u", ! initializing_msg, holder->group_name(), previous_created_workers, active_workers, created_workers); } } }; #endif // SHARE_VM_GC_SHARED_WORKERMANAGER_HPP
< prev index next >