< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page
@@ -76,10 +76,11 @@
  #include "runtime/handles.inline.hpp"
  #include "runtime/handshake.hpp"
  #include "runtime/interfaceSupport.inline.hpp"
  #include "runtime/javaCalls.hpp"
  #include "runtime/jniHandles.inline.hpp"
+ #include "runtime/lockStack.hpp"
  #include "runtime/os.hpp"
  #include "runtime/stackFrameStream.inline.hpp"
  #include "runtime/sweeper.hpp"
  #include "runtime/synchronizer.hpp"
  #include "runtime/thread.hpp"

@@ -1752,10 +1753,18 @@
  WB_ENTRY(jboolean, WB_IsMonitorInflated(JNIEnv* env, jobject wb, jobject obj))
    oop obj_oop = JNIHandles::resolve(obj);
    return (jboolean) obj_oop->mark().has_monitor();
  WB_END
  
+ WB_ENTRY(jint, WB_getLockStackCapacity(JNIEnv* env))
+   return (jint) LockStack::CAPACITY;
+ WB_END
+ 
+ WB_ENTRY(jboolean, WB_supportsRecursiveLightweightLocking(JNIEnv* env))
+   return (jboolean) VM_Version::supports_recursive_lightweight_locking();
+ WB_END
+ 
  WB_ENTRY(jboolean, WB_DeflateIdleMonitors(JNIEnv* env, jobject wb))
    log_info(monitorinflation)("WhiteBox initiated DeflateIdleMonitors");
    return ObjectSynchronizer::request_deflate_idle_monitors();
  WB_END
  

@@ -2547,10 +2556,12 @@
                                                        (void*)&WB_AddModuleExportsToAllUnnamed },
    {CC"AddModuleExportsToAll", CC"(Ljava/lang/Object;Ljava/lang/String;)V",
                                                        (void*)&WB_AddModuleExportsToAll },
    {CC"deflateIdleMonitors", CC"()Z",                  (void*)&WB_DeflateIdleMonitors },
    {CC"isMonitorInflated0", CC"(Ljava/lang/Object;)Z", (void*)&WB_IsMonitorInflated  },
+   {CC"getLockStackCapacity", CC"()I",                 (void*)&WB_getLockStackCapacity },
+   {CC"supportsRecursiveLightweightLocking", CC"()Z",  (void*)&WB_supportsRecursiveLightweightLocking },
    {CC"forceSafepoint",     CC"()V",                   (void*)&WB_ForceSafepoint     },
    {CC"getConstantPool0",   CC"(Ljava/lang/Class;)J",  (void*)&WB_GetConstantPool    },
    {CC"getConstantPoolCacheIndexTag0", CC"()I",  (void*)&WB_GetConstantPoolCacheIndexTag},
    {CC"getConstantPoolCacheLength0", CC"(Ljava/lang/Class;)I",  (void*)&WB_GetConstantPoolCacheLength},
    {CC"remapInstructionOperandFromCPCache0",
< prev index next >