< prev index next >
src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
Print this page
rev 7696 : [mq]: check
*** 137,146 ****
--- 137,148 ----
_eden_cset_region_length(0),
_survivor_cset_region_length(0),
_old_cset_region_length(0),
+ _sigma(G1ConfidencePercent / 100.0),
+
_collection_set(NULL),
_collection_set_bytes_used_before(0),
// Incremental CSet attributes
_inc_cset_build_state(Inactive),
*** 159,179 ****
_recorded_survivor_tail(NULL),
_survivors_age_table(true),
_gc_overhead_perc(0.0) {
! uintx confidence_perc = G1ConfidencePercent;
! // Put an artificial ceiling on this so that it's not set to a silly value.
! if (confidence_perc > 100) {
! confidence_perc = 100;
! warning("G1ConfidencePercent is set to a value that is too large, "
! "it's been updated to %u", confidence_perc);
! }
! // '_sigma' must be initialized before the SurvRateGroups below because they
! // indirecty access '_sigma' trough the 'this' pointer in their constructor.
! _sigma = (double) confidence_perc / 100.0;
!
_short_lived_surv_rate_group =
new SurvRateGroup(this, "Short Lived", G1YoungSurvRateNumRegionsSummary);
_survivor_surv_rate_group =
new SurvRateGroup(this, "Survivor", G1YoungSurvRateNumRegionsSummary);
--- 161,172 ----
_recorded_survivor_tail(NULL),
_survivors_age_table(true),
_gc_overhead_perc(0.0) {
! // SurvRateGroups below must be initialized after '_sigma' because they
! // indirectly access '_sigma' through this object passed to their constructor.
_short_lived_surv_rate_group =
new SurvRateGroup(this, "Short Lived", G1YoungSurvRateNumRegionsSummary);
_survivor_surv_rate_group =
new SurvRateGroup(this, "Survivor", G1YoungSurvRateNumRegionsSummary);
< prev index next >