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.cpp
          +++ new/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp
↓ open down ↓ 151 lines elided ↑ open up ↑
 152  152    _cur_optional_merge_heap_roots_time_ms = 0.0;
 153  153    _cur_prepare_merge_heap_roots_time_ms = 0.0;
 154  154    _cur_optional_prepare_merge_heap_roots_time_ms = 0.0;
 155  155    _cur_evac_fail_recalc_used = 0.0;
 156  156    _cur_evac_fail_remove_self_forwards = 0.0;
 157  157    _cur_string_deduplication_time_ms = 0.0;
 158  158    _cur_prepare_tlab_time_ms = 0.0;
 159  159    _cur_resize_tlab_time_ms = 0.0;
 160  160    _cur_derived_pointer_table_update_time_ms = 0.0;
 161  161    _cur_clear_ct_time_ms = 0.0;
 162      -  _cur_expand_heap_time_ms = 0.0;
      162 +  _cur_resize_heap_time_ms = 0.0;
 163  163    _cur_ref_proc_time_ms = 0.0;
 164  164    _cur_collection_start_sec = 0.0;
 165  165    _root_region_scan_wait_time_ms = 0.0;
 166  166    _external_accounted_time_ms = 0.0;
 167  167    _recorded_prepare_heap_roots_time_ms = 0.0;
 168  168    _recorded_clear_claimed_marks_time_ms = 0.0;
 169  169    _recorded_young_cset_choice_time_ms = 0.0;
 170  170    _recorded_non_young_cset_choice_time_ms = 0.0;
 171  171    _recorded_redirty_logged_cards_time_ms = 0.0;
 172  172    _recorded_preserve_cm_referents_time_ms = 0.0;
↓ open down ↓ 286 lines elided ↑ open up ↑
 459  459                          _recorded_preserve_cm_referents_time_ms +
 460  460                          _cur_ref_proc_time_ms +
 461  461                          (_weak_phase_times.total_time_sec() * MILLIUNITS) +
 462  462                          _cur_clear_ct_time_ms +
 463  463                          merge_pss +
 464  464                          _cur_strong_code_root_purge_time_ms +
 465  465                          _recorded_redirty_logged_cards_time_ms +
 466  466                          _recorded_total_free_cset_time_ms +
 467  467                          _recorded_total_rebuild_freelist_time_ms +
 468  468                          _cur_fast_reclaim_humongous_time_ms +
 469      -                        _cur_expand_heap_time_ms +
      469 +                        _cur_resize_heap_time_ms +
 470  470                          _cur_string_deduplication_time_ms;
 471  471  
 472  472    info_time("Post Evacuate Collection Set", sum_ms);
 473  473  
 474  474    debug_time("Code Roots Fixup", _cur_collection_code_root_fixup_time_ms);
 475  475  
 476  476    debug_time("Clear Card Table", _cur_clear_ct_time_ms);
 477  477  
 478  478    debug_time_for_reference("Reference Processing", _cur_ref_proc_time_ms);
 479  479    _ref_phase_times.print_all_references(2, false);
↓ open down ↓ 31 lines elided ↑ open up ↑
 511  511    trace_phase(_gc_par_phases[RebuildFreeList]);
 512  512  
 513  513    if (G1EagerReclaimHumongousObjects) {
 514  514      debug_time("Humongous Reclaim", _cur_fast_reclaim_humongous_time_ms);
 515  515      trace_count("Humongous Reclaimed", _cur_fast_reclaim_humongous_reclaimed);
 516  516    }
 517  517    debug_time("Start New Collection Set", _recorded_start_new_cset_time_ms);
 518  518    if (UseTLAB && ResizeTLAB) {
 519  519      debug_time("Resize TLABs", _cur_resize_tlab_time_ms);
 520  520    }
 521      -  debug_time("Expand Heap After Collection", _cur_expand_heap_time_ms);
      521 +  debug_time("Resize Heap After Collection", _cur_resize_heap_time_ms);
 522  522  
 523  523  
 524  524    return sum_ms;
 525  525  }
 526  526  
 527  527  void G1GCPhaseTimes::print_other(double accounted_ms) const {
 528  528    info_time("Other", _gc_pause_time_ms - accounted_ms);
 529  529  }
 530  530  
 531  531  void G1GCPhaseTimes::print() {
↓ open down ↓ 126 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX