hotspot/src/share/vm/gc/parallel/psScavenge.cpp
changeset 33105 294e48b4f704
parent 32623 390a27af5657
child 33107 77bf0d2069a3
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   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;