equal
deleted
inserted
replaced
171 bool Generation::promotion_attempt_is_safe(size_t max_promotion_in_bytes) const { |
171 bool Generation::promotion_attempt_is_safe(size_t max_promotion_in_bytes) const { |
172 size_t available = max_contiguous_available(); |
172 size_t available = max_contiguous_available(); |
173 bool res = (available >= max_promotion_in_bytes); |
173 bool res = (available >= max_promotion_in_bytes); |
174 if (PrintGC && Verbose) { |
174 if (PrintGC && Verbose) { |
175 gclog_or_tty->print_cr( |
175 gclog_or_tty->print_cr( |
176 "Generation: promo attempt is%s safe: available("SIZE_FORMAT") %s max_promo("SIZE_FORMAT")", |
176 "Generation: promo attempt is%s safe: available(" SIZE_FORMAT ") %s max_promo(" SIZE_FORMAT ")", |
177 res? "":" not", available, res? ">=":"<", |
177 res? "":" not", available, res? ">=":"<", |
178 max_promotion_in_bytes); |
178 max_promotion_in_bytes); |
179 } |
179 } |
180 return res; |
180 return res; |
181 } |
181 } |