src/hotspot/share/oops/constantPool.inline.hpp
changeset 59290 97d13893ec3c
parent 59247 56bf71d64d51
equal deleted inserted replaced
59289:c887851da33d 59290:97d13893ec3c
    25 #ifndef SHARE_OOPS_CONSTANTPOOL_INLINE_HPP
    25 #ifndef SHARE_OOPS_CONSTANTPOOL_INLINE_HPP
    26 #define SHARE_OOPS_CONSTANTPOOL_INLINE_HPP
    26 #define SHARE_OOPS_CONSTANTPOOL_INLINE_HPP
    27 
    27 
    28 #include "oops/constantPool.hpp"
    28 #include "oops/constantPool.hpp"
    29 #include "oops/cpCache.inline.hpp"
    29 #include "oops/cpCache.inline.hpp"
    30 #include "runtime/orderAccess.hpp"
    30 #include "runtime/atomic.hpp"
    31 
    31 
    32 inline CPSlot ConstantPool::slot_at(int which) const {
    32 inline CPSlot ConstantPool::slot_at(int which) const {
    33   assert(is_within_bounds(which), "index out of bounds");
    33   assert(is_within_bounds(which), "index out of bounds");
    34   assert(!tag_at(which).is_unresolved_klass() && !tag_at(which).is_unresolved_klass_in_error(), "Corrupted constant pool");
    34   assert(!tag_at(which).is_unresolved_klass() && !tag_at(which).is_unresolved_klass_in_error(), "Corrupted constant pool");
    35   // Uses volatile because the klass slot changes without a lock.
    35   // Uses volatile because the klass slot changes without a lock.