src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp

Print this page

        

*** 535,545 **** _tenuring_threshold, survivor_limit); if (PrintTenuringDistribution) { gclog_or_tty->cr(); ! gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold %u (max %u)", size_policy->calculated_survivor_size_in_bytes(), _tenuring_threshold, MaxTenuringThreshold); } if (UsePerfData) { --- 535,546 ---- _tenuring_threshold, survivor_limit); if (PrintTenuringDistribution) { gclog_or_tty->cr(); ! gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold " ! UINTX_FORMAT " (max threshold " UINTX_FORMAT ")", size_policy->calculated_survivor_size_in_bytes(), _tenuring_threshold, MaxTenuringThreshold); } if (UsePerfData) {
*** 815,828 **** } void PSScavenge::initialize() { // Arguments must have been parsed ! if (AlwaysTenure) { ! _tenuring_threshold = 0; ! } else if (NeverTenure) { ! _tenuring_threshold = markOopDesc::max_age + 1; } else { // We want to smooth out our startup times for the AdaptiveSizePolicy _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : MaxTenuringThreshold; } --- 816,829 ---- } void PSScavenge::initialize() { // Arguments must have been parsed ! if (AlwaysTenure || NeverTenure) { ! assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, ! err_msg("MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is ", MaxTenuringThreshold)); ! _tenuring_threshold = MaxTenuringThreshold; } else { // We want to smooth out our startup times for the AdaptiveSizePolicy _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : MaxTenuringThreshold; }