equal
deleted
inserted
replaced
817 void PSScavenge::initialize() { |
817 void PSScavenge::initialize() { |
818 // Arguments must have been parsed |
818 // Arguments must have been parsed |
819 |
819 |
820 if (AlwaysTenure || NeverTenure) { |
820 if (AlwaysTenure || NeverTenure) { |
821 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
821 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
822 err_msg("MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is %d", (int) MaxTenuringThreshold)); |
822 "MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is %d", (int) MaxTenuringThreshold); |
823 _tenuring_threshold = MaxTenuringThreshold; |
823 _tenuring_threshold = MaxTenuringThreshold; |
824 } else { |
824 } else { |
825 // We want to smooth out our startup times for the AdaptiveSizePolicy |
825 // We want to smooth out our startup times for the AdaptiveSizePolicy |
826 _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : |
826 _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : |
827 MaxTenuringThreshold; |
827 MaxTenuringThreshold; |