--- old/src/hotspot/share/gc/g1/g1Analytics.hpp 2019-12-04 15:38:56.562626484 +0100 +++ new/src/hotspot/share/gc/g1/g1Analytics.hpp 2019-12-04 15:38:56.354624895 +0100 @@ -75,6 +75,8 @@ // Statistics kept per GC stoppage, pause or full. TruncatedSeq* _recent_prev_end_times_for_all_gcs_sec; + TruncatedSeq* _survivor_ratio; + // The ratio of gc time to elapsed time, computed over recent pauses, // and the ratio for just the last pause. double _recent_avg_pause_time_ratio; @@ -126,6 +128,7 @@ void report_constant_other_time_ms(double constant_other_time_ms); void report_pending_cards(double pending_cards); void report_rs_length(double rs_length); + void report_survivor_ratio(double ratio); double predict_alloc_rate_ms() const; int num_alloc_rate_ms() const; @@ -158,6 +161,8 @@ size_t predict_rs_length() const; size_t predict_pending_cards() const; + double predict_survivor_ratio() const; + // Add a new GC of the given duration and end time to the record. void update_recent_gc_times(double end_time_sec, double elapsed_ms); void compute_pause_time_ratio(double interval_ms, double pause_time_ms);