equal
deleted
inserted
replaced
53 check_index(index, "index out of range"); |
53 check_index(index, "index out of range"); |
54 return Atomic::load(&_offset_array[index]); |
54 return Atomic::load(&_offset_array[index]); |
55 } |
55 } |
56 |
56 |
57 void G1BlockOffsetTable::set_offset_array_raw(size_t index, u_char offset) { |
57 void G1BlockOffsetTable::set_offset_array_raw(size_t index, u_char offset) { |
58 Atomic::store(offset, &_offset_array[index]); |
58 Atomic::store(&_offset_array[index], offset); |
59 } |
59 } |
60 |
60 |
61 void G1BlockOffsetTable::set_offset_array(size_t index, u_char offset) { |
61 void G1BlockOffsetTable::set_offset_array(size_t index, u_char offset) { |
62 check_index(index, "index out of range"); |
62 check_index(index, "index out of range"); |
63 set_offset_array_raw(index, offset); |
63 set_offset_array_raw(index, offset); |