Print this page
rev 2591 : [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 ↓ 818 lines elided ↑ open up ↑
 950  952      _cur_aux_start_times_ms[i] = os::elapsedTime() * 1000.0;
 951  953    }
 952  954  
 953  955    void record_aux_end_time(int i) {
 954  956      guarantee(i < _aux_num, "should be within range");
 955  957      double ms = os::elapsedTime() * 1000.0 - _cur_aux_start_times_ms[i];
 956  958      _cur_aux_times_set[i] = true;
 957  959      _cur_aux_times_ms[i] += ms;
 958  960    }
 959  961  
      962 +  void record_ref_proc_time(double ms) {
      963 +    _cur_ref_proc_time_ms = ms;
      964 +  }
      965 +
      966 +  void record_ref_enq_time(double ms) {
      967 +    _cur_ref_enq_time_ms = ms;
      968 +  }
      969 +
 960  970  #ifndef PRODUCT
 961  971    void record_cc_clear_time(double ms) {
 962  972      if (_min_clear_cc_time_ms < 0.0 || ms <= _min_clear_cc_time_ms)
 963  973        _min_clear_cc_time_ms = ms;
 964  974      if (_max_clear_cc_time_ms < 0.0 || ms >= _max_clear_cc_time_ms)
 965  975        _max_clear_cc_time_ms = ms;
 966  976      _cur_clear_cc_time_ms = ms;
 967  977      _cum_clear_cc_time_ms += ms;
 968  978      _num_cc_clears++;
 969  979    }
↓ open down ↓ 331 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX