99 |
99 |
100 void G1GCPhaseTimes::note_gc_start() { |
100 void G1GCPhaseTimes::note_gc_start() { |
101 _gc_start_counter = os::elapsed_counter(); |
101 _gc_start_counter = os::elapsed_counter(); |
102 _cur_expand_heap_time_ms = 0.0; |
102 _cur_expand_heap_time_ms = 0.0; |
103 _external_accounted_time_ms = 0.0; |
103 _external_accounted_time_ms = 0.0; |
|
104 _recorded_clear_claimed_marks_time_ms = 0.0; |
104 |
105 |
105 for (int i = 0; i < GCParPhasesSentinel; i++) { |
106 for (int i = 0; i < GCParPhasesSentinel; i++) { |
106 if (_gc_par_phases[i] != NULL) { |
107 if (_gc_par_phases[i] != NULL) { |
107 _gc_par_phases[i]->reset(); |
108 _gc_par_phases[i]->reset(); |
108 } |
109 } |
304 debug_line("Preserve CM Refs", _recorded_preserve_cm_referents_time_ms); |
305 debug_line("Preserve CM Refs", _recorded_preserve_cm_referents_time_ms); |
305 trace_phase(_gc_par_phases[PreserveCMReferents]); |
306 trace_phase(_gc_par_phases[PreserveCMReferents]); |
306 debug_line("Reference Processing", _cur_ref_proc_time_ms); |
307 debug_line("Reference Processing", _cur_ref_proc_time_ms); |
307 debug_line("Reference Enqueuing", _cur_ref_enq_time_ms); |
308 debug_line("Reference Enqueuing", _cur_ref_enq_time_ms); |
308 debug_line("Redirty Cards", _recorded_redirty_logged_cards_time_ms); |
309 debug_line("Redirty Cards", _recorded_redirty_logged_cards_time_ms); |
|
310 if (_recorded_clear_claimed_marks_time_ms > 0.0) { |
|
311 debug_line("Clear Claimed Marks", _recorded_clear_claimed_marks_time_ms); |
|
312 } |
|
313 |
309 trace_phase(_gc_par_phases[RedirtyCards]); |
314 trace_phase(_gc_par_phases[RedirtyCards]); |
310 if (G1EagerReclaimHumongousObjects) { |
315 if (G1EagerReclaimHumongousObjects) { |
311 debug_line("Humongous Register", _cur_fast_reclaim_humongous_register_time_ms); |
316 debug_line("Humongous Register", _cur_fast_reclaim_humongous_register_time_ms); |
312 trace_line_sz("Humongous Total", _cur_fast_reclaim_humongous_total); |
317 trace_line_sz("Humongous Total", _cur_fast_reclaim_humongous_total); |
313 trace_line_sz("Humongous Candidate", _cur_fast_reclaim_humongous_candidates); |
318 trace_line_sz("Humongous Candidate", _cur_fast_reclaim_humongous_candidates); |