hotspot/src/share/vm/oops/cpCache.cpp
changeset 46810 7dad333205cd
parent 46746 ea379ebb9447
child 47095 9d21da6fe729
--- a/hotspot/src/share/vm/oops/cpCache.cpp	Mon Aug 14 16:48:44 2017 +0200
+++ b/hotspot/src/share/vm/oops/cpCache.cpp	Mon Aug 14 14:32:17 2017 -0400
@@ -608,6 +608,18 @@
   }
 }
 
+#if INCLUDE_CDS_JAVA_HEAP
+oop ConstantPoolCache::archived_references() {
+  assert(UseSharedSpaces, "UseSharedSpaces expected.");
+  return oopDesc::decode_heap_oop(_archived_references);
+}
+
+void ConstantPoolCache::set_archived_references(oop o) {
+  assert(DumpSharedSpaces, "called only during runtime");
+  _archived_references = oopDesc::encode_heap_oop(o);
+}
+#endif
+
 #if INCLUDE_JVMTI
 // RedefineClasses() API support:
 // If any entry of this ConstantPoolCache points to any of