src/share/vm/gc_implementation/shared/ageTable.cpp
Print this page
@@ -77,10 +77,12 @@
Atomic::add_ptr(subTable->sizes[i], &sizes[i]);
}
}
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;
assert(sizes[0] == 0, "no objects with age zero should be recorded");
while (age < table_size) {
@@ -94,11 +96,11 @@
if (PrintTenuringDistribution || UsePerfData) {
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);
}
total = 0;
age = 1;