src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp

changeset 9697
cfe3264deba4
parent 7257
e7d0505c8a30
child 9703
2fdf635bcf28
     1.1 --- a/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp	Wed Jun 05 05:15:56 2019 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp	Wed Jun 19 16:36:26 2019 +0100
     1.3 @@ -145,7 +145,7 @@
     1.4  
     1.5    // Array for keeping offsets for retrieving object start fast given an
     1.6    // address.
     1.7 -  u_char* _offset_array;          // byte array keeping backwards offsets
     1.8 +  volatile u_char* _offset_array;          // byte array keeping backwards offsets
     1.9  
    1.10    void check_offset(size_t offset, const char* msg) const {
    1.11      assert(offset <= N_words,
    1.12 @@ -158,9 +158,7 @@
    1.13    // For performance these have to devolve to array accesses in product builds.
    1.14    inline u_char offset_array(size_t index) const;
    1.15  
    1.16 -  void set_offset_array_raw(size_t index, u_char offset) {
    1.17 -    _offset_array[index] = offset;
    1.18 -  }
    1.19 +  inline void set_offset_array_raw(size_t index, u_char offset);
    1.20  
    1.21    inline void set_offset_array(size_t index, u_char offset);
    1.22  

mercurial