hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp
changeset 33216 8ecefd0f0d10
parent 33214 5a00fba36171
child 33217 866a541f5504
equal deleted inserted replaced
33215:dba714a14246 33216:8ecefd0f0d10
   341   uint young_cset_region_length() const { return eden_cset_region_length() +
   341   uint young_cset_region_length() const { return eden_cset_region_length() +
   342                                            survivor_cset_region_length(); }
   342                                            survivor_cset_region_length(); }
   343 
   343 
   344   double predict_survivor_regions_evac_time() const;
   344   double predict_survivor_regions_evac_time() const;
   345 
   345 
       
   346   bool should_update_surv_rate_group_predictors() {
       
   347     return collector_state()->last_young_gc() && !collector_state()->in_marking_window();
       
   348   }
       
   349 
   346   void cset_regions_freed() {
   350   void cset_regions_freed() {
   347     bool propagate = collector_state()->should_propagate();
   351     bool update = should_update_surv_rate_group_predictors();
   348     _short_lived_surv_rate_group->all_surviving_words_recorded(propagate);
   352 
   349     _survivor_surv_rate_group->all_surviving_words_recorded(propagate);
   353     _short_lived_surv_rate_group->all_surviving_words_recorded(update);
   350     // also call it on any more surv rate groups
   354     _survivor_surv_rate_group->all_surviving_words_recorded(update);
   351   }
   355   }
   352 
   356 
   353   G1MMUTracker* mmu_tracker() {
   357   G1MMUTracker* mmu_tracker() {
   354     return _mmu_tracker;
   358     return _mmu_tracker;
   355   }
   359   }