Print this page
rev 2661 : [mq]: g1-reference-processing

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
          +++ new/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
↓ open down ↓ 144 lines elided ↑ open up ↑
 145  145    _all_pause_times_ms(new NumberSeq()),
 146  146    _stop_world_start(0.0),
 147  147    _all_stop_world_times_ms(new NumberSeq()),
 148  148    _all_yield_times_ms(new NumberSeq()),
 149  149    _using_new_ratio_calculations(false),
 150  150  
 151  151    _all_mod_union_times_ms(new NumberSeq()),
 152  152  
 153  153    _summary(new Summary()),
 154  154  
 155      -#ifndef PRODUCT
 156  155    _cur_clear_ct_time_ms(0.0),
      156 +
      157 +  _cur_ref_proc_time_ms(0.0),
      158 +  _cur_ref_enq_time_ms(0.0),
      159 +
      160 +#ifndef PRODUCT
 157  161    _min_clear_cc_time_ms(-1.0),
 158  162    _max_clear_cc_time_ms(-1.0),
 159  163    _cur_clear_cc_time_ms(0.0),
 160  164    _cum_clear_cc_time_ms(0.0),
 161  165    _num_cc_clears(0L),
 162  166  #endif
 163  167  
 164  168    _region_num_young(0),
 165  169    _region_num_tenured(0),
 166  170    _prev_region_num_young(0),
↓ open down ↓ 1305 lines elided ↑ open up ↑
1472 1476      print_stats(1, "Cur Clear CC", _cur_clear_cc_time_ms);
1473 1477      print_stats(1, "Cum Clear CC", _cum_clear_cc_time_ms);
1474 1478      print_stats(1, "Min Clear CC", _min_clear_cc_time_ms);
1475 1479      print_stats(1, "Max Clear CC", _max_clear_cc_time_ms);
1476 1480      if (_num_cc_clears > 0) {
1477 1481        print_stats(1, "Avg Clear CC", _cum_clear_cc_time_ms / ((double)_num_cc_clears));
1478 1482      }
1479 1483  #endif
1480 1484      print_stats(1, "Other", other_time_ms);
1481 1485      print_stats(2, "Choose CSet", _recorded_young_cset_choice_time_ms);
     1486 +    print_stats(2, "Ref Proc", _cur_ref_proc_time_ms);
     1487 +    print_stats(2, "Ref Enq", _cur_ref_enq_time_ms);
1482 1488  
1483 1489      for (int i = 0; i < _aux_num; ++i) {
1484 1490        if (_cur_aux_times_set[i]) {
1485 1491          char buffer[96];
1486 1492          sprintf(buffer, "Aux%d", i);
1487 1493          print_stats(1, buffer, _cur_aux_times_ms[i]);
1488 1494        }
1489 1495      }
1490 1496    }
1491 1497  
↓ open down ↓ 1618 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX