--- old/src/hotspot/share/gc/g1/g1Policy.hpp 2020-02-19 11:43:20.325834507 +0100 +++ new/src/hotspot/share/gc/g1/g1Policy.hpp 2020-02-19 11:43:19.906821417 +0100 @@ -110,6 +110,10 @@ // young GC phase. size_t _bytes_allocated_in_old_since_last_gc; + size_t _minimum_desired_bytes_after_last_cm; + + void determine_desired_bytes_after_concurrent_mark(); + G1InitialMarkToMixedTimeTracker _initial_mark_to_mixed; bool should_update_surv_rate_group_predictors() { @@ -338,8 +342,8 @@ void print_phases(); - bool next_gc_should_be_mixed(const char* true_action_str, - const char* false_action_str) const; + bool next_gc_should_be_mixed(const char* true_action_str = NULL, + const char* false_action_str = NULL) const; // Calculate and return the number of initial and optional old gen regions from // the given collection set candidates and the remaining time. @@ -377,6 +381,8 @@ // the initial-mark work and start a marking cycle. void decide_on_conc_mark_initiation(); + size_t desired_bytes_after_concurrent_mark() const { return _minimum_desired_bytes_after_last_cm; } + size_t young_list_target_length() const { return _young_list_target_length; } bool should_allocate_mutator_region() const; @@ -444,6 +450,7 @@ virtual bool force_upgrade_to_full() { return false; } + size_t desired_bytes_after_concurrent_mark(size_t used_bytes); }; #endif // SHARE_GC_G1_G1POLICY_HPP