< prev index next >
src/share/vm/gc/g1/g1BlockOffsetTable.cpp
Print this page
*** 497,511 ****
_next_offset_threshold =
_array->address_for_index(_next_offset_index);
return _next_offset_threshold;
}
! void G1BlockOffsetArrayContigSpace::set_for_starts_humongous(HeapWord* obj_top) {
// The first BOT entry should have offset 0.
reset_bot();
alloc_block(_bottom, obj_top);
}
#ifndef PRODUCT
void G1BlockOffsetArrayContigSpace::print_on(outputStream* out) {
G1BlockOffsetArray::print_on(out);
out->print_cr(" next offset threshold: " PTR_FORMAT, p2i(_next_offset_threshold));
--- 497,514 ----
_next_offset_threshold =
_array->address_for_index(_next_offset_index);
return _next_offset_threshold;
}
! void G1BlockOffsetArrayContigSpace::set_for_starts_humongous(HeapWord* obj_top, size_t fill_size) {
// The first BOT entry should have offset 0.
reset_bot();
alloc_block(_bottom, obj_top);
+ if (fill_size > 0) {
+ alloc_block(obj_top, fill_size);
}
+ }
#ifndef PRODUCT
void G1BlockOffsetArrayContigSpace::print_on(outputStream* out) {
G1BlockOffsetArray::print_on(out);
out->print_cr(" next offset threshold: " PTR_FORMAT, p2i(_next_offset_threshold));
< prev index next >