< prev index next >

test/lib/sun/hotspot/WhiteBox.java

Print this page

        

@@ -97,14 +97,19 @@
     return getObjectSize0(o);
   }
 
   // Runtime
   // Make sure class name is in the correct format
+  public int countAliveClasses(String name) {
+    return countAliveClasses0(name.replace('.', '/'));
+  }
+  public  native int countAliveClasses0(String name);
+
   public boolean isClassAlive(String name) {
-    return isClassAlive0(name.replace('.', '/'));
+    return countAliveClasses(name) != 0;
   }
-  private native boolean isClassAlive0(String name);
+
   public  native int getSymbolRefcount(String name);
 
   private native boolean isMonitorInflated0(Object obj);
   public         boolean isMonitorInflated(Object obj) {
     Objects.requireNonNull(obj);
< prev index next >