src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp

Print this page

        

*** 192,202 **** set_change_young_gen_for_maj_pauses(0); } // If this is not a full GC, only test and modify the young generation. ! void PSAdaptiveSizePolicy::compute_generation_free_space( size_t young_live, size_t eden_live, size_t old_live, size_t cur_eden, size_t max_old_gen_size, --- 192,202 ---- set_change_young_gen_for_maj_pauses(0); } // If this is not a full GC, only test and modify the young generation. ! void PSAdaptiveSizePolicy::compute_generations_free_space( size_t young_live, size_t eden_live, size_t old_live, size_t cur_eden, size_t max_old_gen_size,
*** 343,364 **** if (PrintAdaptiveSizePolicy) { if (desired_promo_size > promo_limit) { // "free_in_old_gen" was the original value for used for promo_limit size_t free_in_old_gen = (size_t)(max_old_gen_size - avg_old_live()->average()); gclog_or_tty->print_cr( ! "PSAdaptiveSizePolicy::compute_generation_free_space limits:" " desired_promo_size: " SIZE_FORMAT " promo_limit: " SIZE_FORMAT " free_in_old_gen: " SIZE_FORMAT " max_old_gen_size: " SIZE_FORMAT " avg_old_live: " SIZE_FORMAT, desired_promo_size, promo_limit, free_in_old_gen, max_old_gen_size, (size_t) avg_old_live()->average()); } if (desired_eden_size > eden_limit) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generation_free_space limits:" " desired_eden_size: " SIZE_FORMAT " old_eden_size: " SIZE_FORMAT " eden_limit: " SIZE_FORMAT " cur_eden: " SIZE_FORMAT " max_eden_size: " SIZE_FORMAT --- 343,364 ---- if (PrintAdaptiveSizePolicy) { if (desired_promo_size > promo_limit) { // "free_in_old_gen" was the original value for used for promo_limit size_t free_in_old_gen = (size_t)(max_old_gen_size - avg_old_live()->average()); gclog_or_tty->print_cr( ! "PSAdaptiveSizePolicy::compute_generations_free_space limits:" " desired_promo_size: " SIZE_FORMAT " promo_limit: " SIZE_FORMAT " free_in_old_gen: " SIZE_FORMAT " max_old_gen_size: " SIZE_FORMAT " avg_old_live: " SIZE_FORMAT, desired_promo_size, promo_limit, free_in_old_gen, max_old_gen_size, (size_t) avg_old_live()->average()); } if (desired_eden_size > eden_limit) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generations_free_space limits:" " desired_eden_size: " SIZE_FORMAT " old_eden_size: " SIZE_FORMAT " eden_limit: " SIZE_FORMAT " cur_eden: " SIZE_FORMAT " max_eden_size: " SIZE_FORMAT
*** 366,376 **** desired_eden_size, _eden_size, eden_limit, cur_eden, max_eden_size, (size_t)avg_young_live()->average()); } if (gc_cost() > gc_cost_limit) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generation_free_space: gc time limit" " gc_cost: %f " " GCTimeLimit: %d", gc_cost(), GCTimeLimit); } } --- 366,376 ---- desired_eden_size, _eden_size, eden_limit, cur_eden, max_eden_size, (size_t)avg_young_live()->average()); } if (gc_cost() > gc_cost_limit) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generations_free_space: gc time limit" " gc_cost: %f " " GCTimeLimit: %d", gc_cost(), GCTimeLimit); } }
*** 414,424 **** if (PrintAdaptiveSizePolicy) { // Timing stats gclog_or_tty->print( ! "PSAdaptiveSizePolicy::compute_generation_free_space: costs" " minor_time: %f" " major_cost: %f" " mutator_cost: %f" " throughput_goal: %f", minor_gc_cost(), major_gc_cost(), mutator_cost(), --- 414,424 ---- if (PrintAdaptiveSizePolicy) { // Timing stats gclog_or_tty->print( ! "PSAdaptiveSizePolicy::compute_generations_free_space: costs" " minor_time: %f" " major_cost: %f" " mutator_cost: %f" " throughput_goal: %f", minor_gc_cost(), major_gc_cost(), mutator_cost(),
*** 605,615 **** } } if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generation_free_space " "adjusting gen sizes for major pause (avg %f goal %f). " "desired_promo_size " SIZE_FORMAT "desired_eden_size " SIZE_FORMAT " promo delta " SIZE_FORMAT " eden delta " SIZE_FORMAT, _avg_major_pause->average(), gc_pause_goal_sec(), --- 605,615 ---- } } if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generations_free_space " "adjusting gen sizes for major pause (avg %f goal %f). " "desired_promo_size " SIZE_FORMAT "desired_eden_size " SIZE_FORMAT " promo delta " SIZE_FORMAT " eden delta " SIZE_FORMAT, _avg_major_pause->average(), gc_pause_goal_sec(),
*** 808,818 **** size_t reduced_size = desired_promo_size - change; if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generation_free_space " "adjusting tenured gen for footprint. " "starting promo size " SIZE_FORMAT " reduced promo size " SIZE_FORMAT, " promo delta " SIZE_FORMAT, desired_promo_size, reduced_size, change ); --- 808,818 ---- size_t reduced_size = desired_promo_size - change; if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generations_free_space " "adjusting tenured gen for footprint. " "starting promo size " SIZE_FORMAT " reduced promo size " SIZE_FORMAT, " promo delta " SIZE_FORMAT, desired_promo_size, reduced_size, change );
*** 832,842 **** size_t reduced_size = desired_eden_size - change; if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generation_free_space " "adjusting eden for footprint. " " starting eden size " SIZE_FORMAT " reduced eden size " SIZE_FORMAT " eden delta " SIZE_FORMAT, desired_eden_size, reduced_size, change); --- 832,842 ---- size_t reduced_size = desired_eden_size - change; if (PrintAdaptiveSizePolicy && Verbose) { gclog_or_tty->print_cr( ! "AdaptiveSizePolicy::compute_generations_free_space " "adjusting eden for footprint. " " starting eden size " SIZE_FORMAT " reduced eden size " SIZE_FORMAT " eden delta " SIZE_FORMAT, desired_eden_size, reduced_size, change);