8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
authorjiangli
Mon, 14 Aug 2017 14:05:26 -0400
changeset 46247 c703884b0459
parent 46246 1109cf6be193
child 46248 5a6c03b61979
8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive. Summary: Shared class' constant pool resolved_references array is cached. Reviewed-by: coleenp, iklam, tschatzl Contributed-by: jiangli.zhou@oracle.com, thomas.schatzl@oracle.com
test/lib/sun/hotspot/WhiteBox.java
--- a/test/lib/sun/hotspot/WhiteBox.java	Sat Aug 12 01:21:20 2017 +0000
+++ b/test/lib/sun/hotspot/WhiteBox.java	Mon Aug 14 14:05:26 2017 -0400
@@ -519,11 +519,12 @@
   // Safepoint Checking
   public native void assertMatchingSafepointCalls(boolean mutexSafepointValue, boolean attemptedNoSafepointValue);
 
-  // Sharing
+  // Sharing & archiving
   public native boolean isShared(Object o);
   public native boolean isSharedClass(Class<?> c);
   public native boolean areSharedStringsIgnored();
   public native boolean isCDSIncludedInVmBuild();
+  public native Object  getResolvedReferences(Class<?> c);
 
   // Compiler Directive
   public native int addCompilerDirective(String compDirect);