changeset 33217:866a541f5504

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
author tschatzl
date Thu, 15 Oct 2015 10:15:08 +0200
parents 8ecefd0f0d10
children 32b706c7c6a0
files hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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() {