hotspot/src/share/vm/oops/constantPool.hpp
changeset 13952 e3cf184080bc
parent 13736 5b15a8f57979
child 13961 aeaa21c167d1
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   466   // earlier string_at call.
   466   // earlier string_at call.
   467   oop resolved_string_at(int which) {
   467   oop resolved_string_at(int which) {
   468     assert(tag_at(which).is_string(), "Corrupted constant pool");
   468     assert(tag_at(which).is_string(), "Corrupted constant pool");
   469     // Must do an acquire here in case another thread resolved the klass
   469     // Must do an acquire here in case another thread resolved the klass
   470     // behind our back, lest we later load stale values thru the oop.
   470     // behind our back, lest we later load stale values thru the oop.
   471     // we might want a volatile_obj_at in objArrayKlass.
   471     // we might want a volatile_obj_at in ObjArrayKlass.
   472     int obj_index = cp_to_object_index(which);
   472     int obj_index = cp_to_object_index(which);
   473     return resolved_references()->obj_at(obj_index);
   473     return resolved_references()->obj_at(obj_index);
   474   }
   474   }
   475 
   475 
   476   Symbol* unresolved_string_at(int which) {
   476   Symbol* unresolved_string_at(int which) {