--- old/src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp 2019-11-26 16:18:13.682859367 +0100 +++ new/src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp 2019-11-26 16:18:13.294857443 +0100 @@ -76,8 +76,10 @@ StringDedupQueueFixup, StringDedupTableFixup, RedirtyCards, + ParFreeCSet, YoungFreeCSet, NonYoungFreeCSet, + RebuildFreeList, MergePSS, GCParPhasesSentinel }; @@ -204,6 +206,10 @@ double _recorded_serial_free_cset_time_ms; + double _recorded_total_rebuild_freelist_time_ms; + + double _recorded_serial_rebuild_freelist_time_ms; + double _cur_region_register_time; double _cur_fast_reclaim_humongous_time_ms; @@ -351,6 +357,14 @@ _recorded_serial_free_cset_time_ms = time_ms; } + void record_total_rebuild_freelist_time_ms(double time_ms) { + _recorded_total_rebuild_freelist_time_ms = time_ms; + } + + void record_serial_rebuild_freelist_time_ms(double time_ms) { + _recorded_serial_rebuild_freelist_time_ms = time_ms; + } + void record_register_regions(double time_ms, size_t total, size_t candidates) { _cur_region_register_time = time_ms; _cur_fast_reclaim_humongous_total = total; @@ -434,6 +448,10 @@ return _recorded_total_free_cset_time_ms; } + double total_rebuild_freelist_time_ms() { + return _recorded_total_rebuild_freelist_time_ms; + } + double non_young_cset_choice_time_ms() { return _recorded_non_young_cset_choice_time_ms; }