# HG changeset patch # User tschatzl # Date 1444896908 -7200 # Node ID 866a541f5504c9df63c2accfc8fc0118e0572df7 # Parent 8ecefd0f0d10ccd35c7b7c241432d8d10814b4c3 8138752: G1CollectorPolicy::should_should_update_surv_rate_group_predictors() uses wrong predicate Summary: Instead of only updating the survivor rate groups in the young gc after marking and before mixed gc, update them during young gcs outside of marking Reviewed-by: mgerdin, drwhite diff -r 8ecefd0f0d10 -r 866a541f5504 hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp --- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp Thu Oct 15 10:13:08 2015 +0200 +++ b/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp Thu Oct 15 10:15:08 2015 +0200 @@ -344,7 +344,7 @@ double predict_survivor_regions_evac_time() const; bool should_update_surv_rate_group_predictors() { - return collector_state()->last_young_gc() && !collector_state()->in_marking_window(); + return collector_state()->last_gc_was_young() && !collector_state()->in_marking_window(); } void cset_regions_freed() {