1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Wed Mar 18 11:37:48 2009 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Sat Mar 21 22:53:04 2009 -0400 1.3 @@ -1637,7 +1637,9 @@ 1.4 double obj_copy_time = avg_value(_par_last_obj_copy_times_ms); 1.5 double termination_time = avg_value(_par_last_termination_times_ms); 1.6 1.7 - double parallel_other_time; 1.8 + double parallel_other_time = _cur_collection_par_time_ms - 1.9 + (update_rs_time + ext_root_scan_time + mark_stack_scan_time + 1.10 + scan_only_time + scan_rs_time + obj_copy_time + termination_time); 1.11 if (update_stats) { 1.12 MainBodySummary* body_summary = summary->main_body_summary(); 1.13 guarantee(body_summary != NULL, "should not be null!"); 1.14 @@ -1656,9 +1658,6 @@ 1.15 body_summary->record_parallel_time_ms(_cur_collection_par_time_ms); 1.16 body_summary->record_clear_ct_time_ms(_cur_clear_ct_time_ms); 1.17 body_summary->record_termination_time_ms(termination_time); 1.18 - parallel_other_time = _cur_collection_par_time_ms - 1.19 - (update_rs_time + ext_root_scan_time + mark_stack_scan_time + 1.20 - scan_only_time + scan_rs_time + obj_copy_time + termination_time); 1.21 body_summary->record_parallel_other_time_ms(parallel_other_time); 1.22 } 1.23 body_summary->record_mark_closure_time_ms(_mark_closure_time_ms); 1.24 @@ -1803,8 +1802,10 @@ 1.25 gclog_or_tty->print_cr("]"); 1.26 1.27 _all_pause_times_ms->add(elapsed_ms); 1.28 - summary->record_total_time_ms(elapsed_ms); 1.29 - summary->record_other_time_ms(other_time_ms); 1.30 + if (update_stats) { 1.31 + summary->record_total_time_ms(elapsed_ms); 1.32 + summary->record_other_time_ms(other_time_ms); 1.33 + } 1.34 for (int i = 0; i < _aux_num; ++i) 1.35 if (_cur_aux_times_set[i]) 1.36 _all_aux_times_ms[i].add(_cur_aux_times_ms[i]);