--- a/hotspot/src/share/vm/oops/constantPool.hpp Fri May 29 12:49:31 2015 +0200
+++ b/hotspot/src/share/vm/oops/constantPool.hpp Fri May 29 17:04:21 2015 +0300
@@ -84,6 +84,7 @@
// Array of resolved objects from the constant pool and map from resolved
// object index to original constant pool index
+ jobject _resolved_references;
Array<u2>* _reference_map;
enum {
@@ -190,7 +191,6 @@
// resolved strings, methodHandles and callsite objects from the constant pool
objArrayOop resolved_references() const;
-
// mapping resolved object array indexes to cp indexes and back.
int object_to_cp_index(int index) { return _reference_map->at(index); }
int cp_to_object_index(int index);
@@ -222,6 +222,7 @@
static int tags_offset_in_bytes() { return offset_of(ConstantPool, _tags); }
static int cache_offset_in_bytes() { return offset_of(ConstantPool, _cache); }
static int pool_holder_offset_in_bytes() { return offset_of(ConstantPool, _pool_holder); }
+ static int resolved_references_offset_in_bytes() { return offset_of(ConstantPool, _resolved_references); }
// Storing constants
@@ -770,6 +771,7 @@
private:
+ void set_resolved_references(jobject s) { _resolved_references = s; }
Array<u2>* reference_map() const { return _reference_map; }
void set_reference_map(Array<u2>* o) { _reference_map = o; }