changeset 2784:c1d93422c78e

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
author jiangli
date Mon, 14 Aug 2017 14:05:26 -0400
parents 3e449870be57
children 90010ba88e64
files test/lib/sun/hotspot/WhiteBox.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);