< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page
@@ -955,10 +955,19 @@
    _thread_blocked           = 10, // blocked in vm
    _thread_blocked_trans     = 11, // corresponding transition state
    _thread_max_state         = 12  // maximum thread state+1 - used for statistics allocation
  };
  
+ enum LockingMode {
+   // Use only heavy monitors for locking
+   LM_MONITOR     = 0,
+   // Legacy stack-locking, with monitors as 2nd tier
+   LM_LEGACY      = 1,
+   // New lightweight locking, with monitors as 2nd tier
+   LM_LIGHTWEIGHT = 2
+ };
+ 
  //----------------------------------------------------------------------------------------------------
  // Special constants for debugging
  
  const jint     badInt           = -3;                       // generic "bad int" value
  const intptr_t badAddressVal    = -2;                       // generic "bad address" value
< prev index next >