src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp
changeset 59248 e92153ed8bdc
parent 58980 47c20fc6a517
equal deleted inserted replaced
59247:56bf71d64d51 59248:e92153ed8bdc
    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);