bool AdaptiveSizePolicy::print_adaptive_size_policy_on( outputStream* st, uint tenuring_threshold_arg) const { if (!AdaptiveSizePolicy::print_adaptive_size_policy_on(st)) { return false; } // Tenuring threshold bool tenuring_threshold_changed = true; if (decrement_tenuring_threshold_for_survivor_limit()) { st->print(" Tenuring threshold: (attempted to decrease to avoid" " survivor space overflow) = "); } else if (decrement_tenuring_threshold_for_gc_cost()) { st->print(" Tenuring threshold: (attempted to decrease to balance" " GC costs) = "); } else if (increment_tenuring_threshold_for_gc_cost()) { st->print(" Tenuring threshold: (attempted to increase to balance" " GC costs) = "); } else { tenuring_threshold_changed = false; assert(!tenuring_threshold_change(), "(no change was attempted)"); } if (tenuring_threshold_changed) { st->print_cr("%u", tenuring_threshold_arg); } return true; }
void AdaptiveSizePolicy::print_tenuring_threshold( uint new_tenuring_threshold_arg) const { // Tenuring threshold if (decrement_tenuring_threshold_for_survivor_limit()) { log_debug(gc, ergo)("Tenuring threshold: (attempted to decrease to avoid survivor space overflow) = %u", new_tenuring_threshold_arg); } else if (decrement_tenuring_threshold_for_gc_cost()) { log_debug(gc, ergo)("Tenuring threshold: (attempted to decrease to balance GC costs) = %u", new_tenuring_threshold_arg); } else if (increment_tenuring_threshold_for_gc_cost()) { log_debug(gc, ergo)("Tenuring threshold: (attempted to increase to balance GC costs) = %u", new_tenuring_threshold_arg); } else { assert(!tenuring_threshold_change(), "(no change was attempted)"); } }
bool AdaptiveSizePolicy::tenuring_threshold_change() const { return decrement_tenuring_threshold_for_gc_cost() || increment_tenuring_threshold_for_gc_cost() || decrement_tenuring_threshold_for_survivor_limit(); }