hotspot/src/share/vm/gc/shared/workgroup.cpp
changeset 39704 157f39705057
parent 39272 65c0727c04db
child 40096 246c62cd9180
equal deleted inserted replaced
39703:66722c5bc87a 39704:157f39705057
    64   if (are_ConcurrentGC_threads()) {
    64   if (are_ConcurrentGC_threads()) {
    65     worker_type = os::cgc_thread;
    65     worker_type = os::cgc_thread;
    66   } else {
    66   } else {
    67     worker_type = os::pgc_thread;
    67     worker_type = os::pgc_thread;
    68   }
    68   }
       
    69   uint previous_created_workers = _created_workers;
    69 
    70 
    70   _created_workers = WorkerManager::add_workers(this,
    71   _created_workers = WorkerManager::add_workers(this,
    71                                                 active_workers,
    72                                                 active_workers,
    72                                                 _total_workers,
    73                                                 _total_workers,
    73                                                 _created_workers,
    74                                                 _created_workers,
    74                                                 worker_type,
    75                                                 worker_type,
    75                                                 initializing);
    76                                                 initializing);
    76   _active_workers = MIN2(_created_workers, _active_workers);
    77   _active_workers = MIN2(_created_workers, _active_workers);
       
    78 
       
    79   WorkerManager::log_worker_creation(this, previous_created_workers, _active_workers, _created_workers, initializing);
    77 }
    80 }
    78 
    81 
    79 AbstractGangWorker* AbstractWorkGang::worker(uint i) const {
    82 AbstractGangWorker* AbstractWorkGang::worker(uint i) const {
    80   // Array index bounds checking.
    83   // Array index bounds checking.
    81   AbstractGangWorker* result = NULL;
    84   AbstractGangWorker* result = NULL;