Print this page
JDK-8236073 G1: Use SoftMaxHeapSize to guide GC heuristics

Split Close
Expand all
Collapse all
          --- old/src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp
          +++ new/src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp
↓ open down ↓ 138 lines elided ↑ open up ↑
 139  139  
 140  140    double _cur_prepare_merge_heap_roots_time_ms;
 141  141    double _cur_optional_prepare_merge_heap_roots_time_ms;
 142  142  
 143  143    double _cur_prepare_tlab_time_ms;
 144  144    double _cur_resize_tlab_time_ms;
 145  145  
 146  146    double _cur_derived_pointer_table_update_time_ms;
 147  147  
 148  148    double _cur_clear_ct_time_ms;
 149      -  double _cur_expand_heap_time_ms;
      149 +  double _cur_resize_heap_time_ms;
 150  150    double _cur_ref_proc_time_ms;
 151  151  
 152  152    double _cur_collection_start_sec;
 153  153    double _root_region_scan_wait_time_ms;
 154  154  
 155  155    double _external_accounted_time_ms;
 156  156  
 157  157    double _recorded_prepare_heap_roots_time_ms;
 158  158  
 159  159    double _recorded_clear_claimed_marks_time_ms;
↓ open down ↓ 93 lines elided ↑ open up ↑
 253  253    }
 254  254  
 255  255    void record_derived_pointer_table_update_time(double ms) {
 256  256      _cur_derived_pointer_table_update_time_ms = ms;
 257  257    }
 258  258  
 259  259    void record_clear_ct_time(double ms) {
 260  260      _cur_clear_ct_time_ms = ms;
 261  261    }
 262  262  
 263      -  void record_expand_heap_time(double ms) {
 264      -    _cur_expand_heap_time_ms = ms;
      263 +  void record_resize_heap_time(double ms) {
      264 +    _cur_resize_heap_time_ms = ms;
 265  265    }
 266  266  
 267  267    void record_initial_evac_time(double ms) {
 268  268      _cur_collection_initial_evac_time_ms = ms;
 269  269    }
 270  270  
 271  271    void record_or_add_optional_evac_time(double ms) {
 272  272      _cur_optional_evac_time_ms += ms;
 273  273    }
 274  274  
↓ open down ↓ 117 lines elided ↑ open up ↑
 392  392    }
 393  393  
 394  394    double cur_collection_par_time_ms() {
 395  395      return _cur_collection_initial_evac_time_ms + _cur_optional_evac_time_ms;
 396  396    }
 397  397  
 398  398    double cur_clear_ct_time_ms() {
 399  399      return _cur_clear_ct_time_ms;
 400  400    }
 401  401  
 402      -  double cur_expand_heap_time_ms() {
 403      -    return _cur_expand_heap_time_ms;
      402 +  double cur_resize_heap_time_ms() {
      403 +    return _cur_resize_heap_time_ms;
 404  404    }
 405  405  
 406  406    double root_region_scan_wait_time_ms() {
 407  407      return _root_region_scan_wait_time_ms;
 408  408    }
 409  409  
 410  410    double young_cset_choice_time_ms() {
 411  411      return _recorded_young_cset_choice_time_ms;
 412  412    }
 413  413  
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX