test/lib/sun/hotspot/WhiteBox.java
changeset 33045 00f484891bcf
parent 33038 5d648743b2d1
child 33432 d3cbcb934612
--- a/test/lib/sun/hotspot/WhiteBox.java	Thu Oct 01 11:52:43 2015 -0700
+++ b/test/lib/sun/hotspot/WhiteBox.java	Thu Oct 08 11:31:14 2015 -1000
@@ -112,6 +112,12 @@
 
   public native void forceSafepoint();
 
+  private native long getConstantPool0(Class<?> aClass);
+  public         long getConstantPool(Class<?> aClass) {
+    Objects.requireNonNull(aClass);
+    return getConstantPool0(aClass);
+  }
+
   // JVMTI
   private native void addToBootstrapClassLoaderSearch0(String segment);
   public         void addToBootstrapClassLoaderSearch(String segment){
@@ -289,6 +295,11 @@
   public native void    forceNMethodSweep();
   public native Object[] getCodeHeapEntries(int type);
   public native int     getCompilationActivityMode();
+  private native long getMethodData0(Executable method);
+  public         long getMethodData(Executable method) {
+    Objects.requireNonNull(method);
+    return getMethodData0(method);
+  }
   public native Object[] getCodeBlob(long addr);
 
   // Intered strings