src/hotspot/share/oops/constantPool.inline.hpp
changeset 50429 83aec1d357d4
parent 49816 a3e79f97e86b
child 53244 9807daeb47c4
equal deleted inserted replaced
50428:8c88df2e8a78 50429:83aec1d357d4
    25 #ifndef SHARE_VM_OOPS_CONSTANTPOOL_INLINE_HPP
    25 #ifndef SHARE_VM_OOPS_CONSTANTPOOL_INLINE_HPP
    26 #define SHARE_VM_OOPS_CONSTANTPOOL_INLINE_HPP
    26 #define SHARE_VM_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.inline.hpp"
    30 #include "runtime/orderAccess.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.