134 _gc_par_phases[RedirtyCards] = new WorkerDataArray<double>(max_gc_threads, "Parallel Redirty", true, G1Log::LevelFinest, 3); |
134 _gc_par_phases[RedirtyCards] = new WorkerDataArray<double>(max_gc_threads, "Parallel Redirty", true, G1Log::LevelFinest, 3); |
135 _redirtied_cards = new WorkerDataArray<size_t>(max_gc_threads, "Redirtied Cards", true, G1Log::LevelFinest, 3); |
135 _redirtied_cards = new WorkerDataArray<size_t>(max_gc_threads, "Redirtied Cards", true, G1Log::LevelFinest, 3); |
136 _gc_par_phases[RedirtyCards]->link_thread_work_items(_redirtied_cards); |
136 _gc_par_phases[RedirtyCards]->link_thread_work_items(_redirtied_cards); |
137 } |
137 } |
138 |
138 |
139 void G1GCPhaseTimes::note_gc_start(uint active_gc_threads, bool mark_in_progress) { |
139 void G1GCPhaseTimes::note_gc_start(uint active_gc_threads) { |
140 assert(active_gc_threads > 0, "The number of threads must be > 0"); |
140 assert(active_gc_threads > 0, "The number of threads must be > 0"); |
141 assert(active_gc_threads <= _max_gc_threads, "The number of active threads must be <= the max number of threads"); |
141 assert(active_gc_threads <= _max_gc_threads, "The number of active threads must be <= the max number of threads"); |
142 _active_gc_threads = active_gc_threads; |
142 _active_gc_threads = active_gc_threads; |
143 _cur_expand_heap_time_ms = 0.0; |
143 _cur_expand_heap_time_ms = 0.0; |
144 |
144 |