< prev index next >

src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp

Print this page
rev 55196 : 8225716: G1 GC: Undefined behaviour in G1BlockOffsetTablePart::block_at_or_preceding
Reviewed-by: duke

*** 49,59 **** } } u_char G1BlockOffsetTable::offset_array(size_t index) const { check_index(index, "index out of range"); ! return _offset_array[index]; } void G1BlockOffsetTable::set_offset_array(size_t index, u_char offset) { check_index(index, "index out of range"); set_offset_array_raw(index, offset); --- 49,59 ---- } } u_char G1BlockOffsetTable::offset_array(size_t index) const { check_index(index, "index out of range"); ! return Atomic::load(&_offset_array[index]); } void G1BlockOffsetTable::set_offset_array(size_t index, u_char offset) { check_index(index, "index out of range"); set_offset_array_raw(index, offset);
< prev index next >