Mercurial > hg > truffle
comparison src/share/vm/oops/constantPool.hpp @ 6840:6e5a59a8e4a7
Merge
author | rbackman |
---|---|
date | Tue, 09 Oct 2012 07:41:27 +0200 |
parents | f6b0eb4e44cf d8ce2825b193 |
children | 18fb7da42534 |
comparison
equal
deleted
inserted
replaced
6830:81e878c53615 | 6840:6e5a59a8e4a7 |
---|---|
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) { |