changeset 28351:bbdca807711d

8068272: Extend WhiteBox API with methods that check monitor state and force safepoint Reviewed-by: kvn, iignatyev
author fzhinkin
date Tue, 30 Dec 2014 11:05:01 +0300
parents d83a1a6e552c
children a7a3a60a96ed
files test/lib/sun/hotspot/WhiteBox.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);