equal
deleted
inserted
replaced
270 } |
270 } |
271 return obj; |
271 return obj; |
272 } |
272 } |
273 |
273 |
274 |
274 |
275 void ParScanThreadState::undo_alloc_in_to_space(HeapWord* obj, |
275 void ParScanThreadState::undo_alloc_in_to_space(HeapWord* obj, size_t word_sz) { |
276 size_t word_sz) { |
276 to_space_alloc_buffer()->undo_allocation(obj, word_sz); |
277 // Is the alloc in the current alloc buffer? |
|
278 if (to_space_alloc_buffer()->contains(obj)) { |
|
279 assert(to_space_alloc_buffer()->contains(obj + word_sz - 1), |
|
280 "Should contain whole object."); |
|
281 to_space_alloc_buffer()->undo_allocation(obj, word_sz); |
|
282 } else { |
|
283 CollectedHeap::fill_with_object(obj, word_sz); |
|
284 } |
|
285 } |
277 } |
286 |
278 |
287 void ParScanThreadState::print_promotion_failure_size() { |
279 void ParScanThreadState::print_promotion_failure_size() { |
288 if (_promotion_failed_info.has_failed() && PrintPromotionFailure) { |
280 if (_promotion_failed_info.has_failed() && PrintPromotionFailure) { |
289 gclog_or_tty->print(" (%d: promotion failure size = " SIZE_FORMAT ") ", |
281 gclog_or_tty->print(" (%d: promotion failure size = " SIZE_FORMAT ") ", |