8138752: G1CollectorPolicy::should_should_update_surv_rate_group_predictors() uses wrong predicate
authortschatzl
Thu, 15 Oct 2015 10:15:08 +0200
changeset 33217 866a541f5504
parent 33216 8ecefd0f0d10
child 33218 32b706c7c6a0
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
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() {