hotspot/src/share/vm/oops/cpCache.cpp
changeset 46810 7dad333205cd
parent 46746 ea379ebb9447
child 47095 9d21da6fe729
equal deleted inserted replaced
46809:057f21a10f5f 46810:7dad333205cd
   606       ref += ConstantPoolCacheEntry::_indy_resolved_references_entries - 1;  // skip extra entries
   606       ref += ConstantPoolCacheEntry::_indy_resolved_references_entries - 1;  // skip extra entries
   607     }
   607     }
   608   }
   608   }
   609 }
   609 }
   610 
   610 
       
   611 #if INCLUDE_CDS_JAVA_HEAP
       
   612 oop ConstantPoolCache::archived_references() {
       
   613   assert(UseSharedSpaces, "UseSharedSpaces expected.");
       
   614   return oopDesc::decode_heap_oop(_archived_references);
       
   615 }
       
   616 
       
   617 void ConstantPoolCache::set_archived_references(oop o) {
       
   618   assert(DumpSharedSpaces, "called only during runtime");
       
   619   _archived_references = oopDesc::encode_heap_oop(o);
       
   620 }
       
   621 #endif
       
   622 
   611 #if INCLUDE_JVMTI
   623 #if INCLUDE_JVMTI
   612 // RedefineClasses() API support:
   624 // RedefineClasses() API support:
   613 // If any entry of this ConstantPoolCache points to any of
   625 // If any entry of this ConstantPoolCache points to any of
   614 // old_methods, replace it with the corresponding new_method.
   626 // old_methods, replace it with the corresponding new_method.
   615 void ConstantPoolCache::adjust_method_entries(InstanceKlass* holder, bool * trace_name_printed) {
   627 void ConstantPoolCache::adjust_method_entries(InstanceKlass* holder, bool * trace_name_printed) {