< prev index next >
src/share/vm/gc_implementation/parNew/parNewGeneration.cpp
Print this page
rev 8152 : secret commit PLAB waste
*** 270,289 ****
}
return obj;
}
! void ParScanThreadState::undo_alloc_in_to_space(HeapWord* obj,
! size_t word_sz) {
! // Is the alloc in the current alloc buffer?
! if (to_space_alloc_buffer()->contains(obj)) {
! assert(to_space_alloc_buffer()->contains(obj + word_sz - 1),
! "Should contain whole object.");
to_space_alloc_buffer()->undo_allocation(obj, word_sz);
- } else {
- CollectedHeap::fill_with_object(obj, word_sz);
- }
}
void ParScanThreadState::print_promotion_failure_size() {
if (_promotion_failed_info.has_failed() && PrintPromotionFailure) {
gclog_or_tty->print(" (%d: promotion failure size = " SIZE_FORMAT ") ",
--- 270,281 ----
}
return obj;
}
! void ParScanThreadState::undo_alloc_in_to_space(HeapWord* obj, size_t word_sz) {
to_space_alloc_buffer()->undo_allocation(obj, word_sz);
}
void ParScanThreadState::print_promotion_failure_size() {
if (_promotion_failed_info.has_failed() && PrintPromotionFailure) {
gclog_or_tty->print(" (%d: promotion failure size = " SIZE_FORMAT ") ",
< prev index next >