src/hotspot/share/memory/padded.hpp
changeset 53404 9ff1e6cacac3
parent 53244 9807daeb47c4
equal deleted inserted replaced
53403:683a112e0e1e 53404:9ff1e6cacac3
    23  */
    23  */
    24 
    24 
    25 #ifndef SHARE_MEMORY_PADDED_HPP
    25 #ifndef SHARE_MEMORY_PADDED_HPP
    26 #define SHARE_MEMORY_PADDED_HPP
    26 #define SHARE_MEMORY_PADDED_HPP
    27 
    27 
       
    28 #include "memory/allocation.hpp"
    28 #include "utilities/align.hpp"
    29 #include "utilities/align.hpp"
    29 #include "utilities/globalDefinitions.hpp"
    30 #include "utilities/globalDefinitions.hpp"
    30 
    31 
    31 // Bytes needed to pad type to avoid cache-line sharing; alignment should be the
    32 // Bytes needed to pad type to avoid cache-line sharing; alignment should be the
    32 // expected cache line size (a power of two).  The first addend avoids sharing
    33 // expected cache line size (a power of two).  The first addend avoids sharing