src/hotspot/share/oops/cpCache.inline.hpp
changeset 59290 97d13893ec3c
parent 59247 56bf71d64d51
equal deleted inserted replaced
59289:c887851da33d 59290:97d13893ec3c
    25 #ifndef SHARE_OOPS_CPCACHE_INLINE_HPP
    25 #ifndef SHARE_OOPS_CPCACHE_INLINE_HPP
    26 #define SHARE_OOPS_CPCACHE_INLINE_HPP
    26 #define SHARE_OOPS_CPCACHE_INLINE_HPP
    27 
    27 
    28 #include "oops/cpCache.hpp"
    28 #include "oops/cpCache.hpp"
    29 #include "oops/oopHandle.inline.hpp"
    29 #include "oops/oopHandle.inline.hpp"
    30 #include "runtime/orderAccess.hpp"
    30 #include "runtime/atomic.hpp"
    31 
    31 
    32 inline int ConstantPoolCacheEntry::indices_ord() const { return Atomic::load_acquire(&_indices); }
    32 inline int ConstantPoolCacheEntry::indices_ord() const { return Atomic::load_acquire(&_indices); }
    33 
    33 
    34 inline Bytecodes::Code ConstantPoolCacheEntry::bytecode_1() const {
    34 inline Bytecodes::Code ConstantPoolCacheEntry::bytecode_1() const {
    35   return Bytecodes::cast((indices_ord() >> bytecode_1_shift) & bytecode_1_mask);
    35   return Bytecodes::cast((indices_ord() >> bytecode_1_shift) & bytecode_1_mask);