8068272: Extend WhiteBox API with methods that check monitor state and force safepoint
Reviewed-by: kvn, iignatyev
--- a/test/lib/sun/hotspot/WhiteBox.java Wed Dec 24 19:31:28 2014 +0300
+++ b/test/lib/sun/hotspot/WhiteBox.java Tue Dec 30 11:05:01 2014 +0300
@@ -84,6 +84,8 @@
return isClassAlive0(name.replace('.', '/'));
}
private native boolean isClassAlive0(String name);
+ public native boolean isMonitorInflated(Object obj);
+ public native void forceSafepoint();
// JVMTI
public native void addToBootstrapClassLoaderSearch(String segment);