< prev index next >

test/lib/sun/hotspot/WhiteBox.java

Print this page

        

*** 97,110 **** return getObjectSize0(o); } // Runtime // Make sure class name is in the correct format public boolean isClassAlive(String name) { ! return isClassAlive0(name.replace('.', '/')); } ! 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); --- 97,115 ---- 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 countAliveClasses(name) != 0; } ! public native int getSymbolRefcount(String name); private native boolean isMonitorInflated0(Object obj); public boolean isMonitorInflated(Object obj) { Objects.requireNonNull(obj);
< prev index next >