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

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
          +++ new/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp
↓ open down ↓ 111 lines elided ↑ open up ↑
 112  112    }
 113  113  
 114  114    double _cur_collection_start_sec;
 115  115    size_t _cur_collection_pause_used_at_start_bytes;
 116  116    size_t _cur_collection_pause_used_regions_at_start;
 117  117    size_t _prev_collection_pause_used_at_end_bytes;
 118  118    double _cur_collection_par_time_ms;
 119  119    double _cur_satb_drain_time_ms;
 120  120    double _cur_clear_ct_time_ms;
 121  121    bool   _satb_drain_time_set;
      122 +  double _cur_ref_proc_time_ms;
      123 +  double _cur_ref_enq_time_ms;
 122  124  
 123  125  #ifndef PRODUCT
 124  126    // Card Table Count Cache stats
 125  127    double _min_clear_cc_time_ms;         // min
 126  128    double _max_clear_cc_time_ms;         // max
 127  129    double _cur_clear_cc_time_ms;         // clearing time during current pause
 128  130    double _cum_clear_cc_time_ms;         // cummulative clearing time
 129  131    jlong  _num_cc_clears;                // number of times the card count cache has been cleared
 130  132  #endif
 131  133  
↓ open down ↓ 847 lines elided ↑ open up ↑
 979  981      _cur_aux_start_times_ms[i] = os::elapsedTime() * 1000.0;
 980  982    }
 981  983  
 982  984    void record_aux_end_time(int i) {
 983  985      guarantee(i < _aux_num, "should be within range");
 984  986      double ms = os::elapsedTime() * 1000.0 - _cur_aux_start_times_ms[i];
 985  987      _cur_aux_times_set[i] = true;
 986  988      _cur_aux_times_ms[i] += ms;
 987  989    }
 988  990  
      991 +  void record_ref_proc_time(double ms) {
      992 +    _cur_ref_proc_time_ms = ms;
      993 +  }
      994 +
      995 +  void record_ref_enq_time(double ms) {
      996 +    _cur_ref_enq_time_ms = ms;
      997 +  }
      998 +
 989  999  #ifndef PRODUCT
 990 1000    void record_cc_clear_time(double ms) {
 991 1001      if (_min_clear_cc_time_ms < 0.0 || ms <= _min_clear_cc_time_ms)
 992 1002        _min_clear_cc_time_ms = ms;
 993 1003      if (_max_clear_cc_time_ms < 0.0 || ms >= _max_clear_cc_time_ms)
 994 1004        _max_clear_cc_time_ms = ms;
 995 1005      _cur_clear_cc_time_ms = ms;
 996 1006      _cum_clear_cc_time_ms += ms;
 997 1007      _num_cc_clears++;
 998 1008    }
↓ open down ↓ 312 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX