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
--- 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);