equal
deleted
inserted
replaced
110 // for reasons the "increment" fraction is used. |
110 // for reasons the "increment" fraction is used. |
111 PSAdaptiveSizePolicy* policy = heap->size_policy(); |
111 PSAdaptiveSizePolicy* policy = heap->size_policy(); |
112 size_t result = policy->eden_increment_aligned_down(max_contraction); |
112 size_t result = policy->eden_increment_aligned_down(max_contraction); |
113 size_t result_aligned = align_size_down(result, gen_alignment); |
113 size_t result_aligned = align_size_down(result, gen_alignment); |
114 if (PrintAdaptiveSizePolicy && Verbose) { |
114 if (PrintAdaptiveSizePolicy && Verbose) { |
115 gclog_or_tty->print_cr("ASPSYoungGen::available_for_contraction: %d K", |
115 gclog_or_tty->print_cr("ASPSYoungGen::available_for_contraction: " SIZE_FORMAT " K", |
116 result_aligned/K); |
116 result_aligned/K); |
117 gclog_or_tty->print_cr(" max_contraction %d K", max_contraction/K); |
117 gclog_or_tty->print_cr(" max_contraction " SIZE_FORMAT " K", max_contraction/K); |
118 gclog_or_tty->print_cr(" eden_avail %d K", eden_avail/K); |
118 gclog_or_tty->print_cr(" eden_avail " SIZE_FORMAT " K", eden_avail/K); |
119 gclog_or_tty->print_cr(" gen_avail %d K", gen_avail/K); |
119 gclog_or_tty->print_cr(" gen_avail " SIZE_FORMAT " K", gen_avail/K); |
120 } |
120 } |
121 return result_aligned; |
121 return result_aligned; |
122 } |
122 } |
123 |
123 |
124 return 0; |
124 return 0; |