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
--- 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() {