< prev index next >

src/hotspot/share/gc/g1/g1SurvRateGroup.cpp

Print this page
rev 57223 : imported patch 8225484-changes-to-survivor-calculation

*** 24,34 **** #include "precompiled.hpp" #include "gc/g1/g1CollectedHeap.inline.hpp" #include "gc/g1/g1Predictions.hpp" #include "gc/g1/g1SurvRateGroup.hpp" - #include "gc/g1/heapRegion.hpp" #include "logging/log.hpp" #include "memory/allocation.hpp" G1SurvRateGroup::G1SurvRateGroup() : _stats_arrays_length(0), --- 24,33 ----
*** 80,94 **** _stats_arrays_length = _num_added_regions; } } ! void G1SurvRateGroup::record_surviving_words(int age_in_group, size_t surv_words) { guarantee(0 <= age_in_group && (size_t)age_in_group < _num_added_regions, "age_in_group is %d not between 0 and " SIZE_FORMAT, age_in_group, _num_added_regions); - - double surv_rate = (double)surv_words / HeapRegion::GrainWords; _surv_rate_predictors[age_in_group]->add(surv_rate); } void G1SurvRateGroup::all_surviving_words_recorded(const G1Predictions& predictor, bool update_predictors) { if (update_predictors) { --- 79,91 ---- _stats_arrays_length = _num_added_regions; } } ! void G1SurvRateGroup::record_surviving_words(int age_in_group, double surv_rate) { guarantee(0 <= age_in_group && (size_t)age_in_group < _num_added_regions, "age_in_group is %d not between 0 and " SIZE_FORMAT, age_in_group, _num_added_regions); _surv_rate_predictors[age_in_group]->add(surv_rate); } void G1SurvRateGroup::all_surviving_words_recorded(const G1Predictions& predictor, bool update_predictors) { if (update_predictors) {
< prev index next >