--- old/src/share/vm/gc_implementation/shared/ageTable.cpp 2013-06-21 11:34:25.000000000 -0700 +++ new/src/share/vm/gc_implementation/shared/ageTable.cpp 2013-06-21 11:34:25.000000000 -0700 @@ -79,6 +79,8 @@ } uint ageTable::compute_tenuring_threshold(size_t survivor_capacity) { + if (AlwaysTenure || NeverTenure) return MaxTenuringThreshold; + size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100); size_t total = 0; uint age = 1; @@ -96,7 +98,7 @@ if (PrintTenuringDistribution) { gclog_or_tty->cr(); - gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold %u (max %u)", + gclog_or_tty->print_cr("Desired survivor size " SIZE_FORMAT " bytes, new threshold %u (max threshold %u)", desired_survivor_size*oopSize, result, MaxTenuringThreshold); }