hotspot/src/share/vm/oops/constantPool.hpp
changeset 17370 59a0620561fa
parent 17078 a37993c37937
child 20017 81eba62e9048
child 20063 8965b97fcbb2
equal deleted inserted replaced
17367:64c84d620e5c 17370:59a0620561fa
   352     return klass_at_impl(h_this, which, CHECK_NULL);
   352     return klass_at_impl(h_this, which, CHECK_NULL);
   353   }
   353   }
   354 
   354 
   355   Symbol* klass_name_at(int which);  // Returns the name, w/o resolving.
   355   Symbol* klass_name_at(int which);  // Returns the name, w/o resolving.
   356 
   356 
   357   Klass* resolved_klass_at(int which) {  // Used by Compiler
   357   Klass* resolved_klass_at(int which) const {  // Used by Compiler
   358     guarantee(tag_at(which).is_klass(), "Corrupted constant pool");
   358     guarantee(tag_at(which).is_klass(), "Corrupted constant pool");
   359     // Must do an acquire here in case another thread resolved the klass
   359     // Must do an acquire here in case another thread resolved the klass
   360     // behind our back, lest we later load stale values thru the oop.
   360     // behind our back, lest we later load stale values thru the oop.
   361     return CPSlot((Klass*)OrderAccess::load_ptr_acquire(obj_at_addr_raw(which))).get_klass();
   361     return CPSlot((Klass*)OrderAccess::load_ptr_acquire(obj_at_addr_raw(which))).get_klass();
   362   }
   362   }