8068272: Extend WhiteBox API with methods that check monitor state and force safepoint
authorfzhinkin
Tue, 30 Dec 2014 11:05:01 +0300
changeset 28351 bbdca807711d
parent 28350 d83a1a6e552c
child 28352 a7a3a60a96ed
8068272: Extend WhiteBox API with methods that check monitor state and force safepoint Reviewed-by: kvn, iignatyev
test/lib/sun/hotspot/WhiteBox.java
--- 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);