Package gw.lang.reflect.module
Class TypeSystemLockHelper
- java.lang.Object
-
- gw.lang.reflect.module.TypeSystemLockHelper
-
public class TypeSystemLockHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Boolean_bStudioRunningWe avoid doing deadlock detection with class loading if we're running in Studio primarily because the TIDB can grab the type system lock and hold it for a long time during TIDB initialization.
-
Constructor Summary
Constructors Constructor Description TypeSystemLockHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiddumpAllStackTraces(java.lang.Object objectToLock)static voidgetTypeSystemLockWithMonitor(java.lang.Object objectToLock)static booleanisMonitorOwner(java.lang.Thread thread, java.lang.Object monitor)private static booleanisStudioRunning()private static booleanisTypeSystemLockOwner(java.lang.Thread thread)
-
-
-
Method Detail
-
isStudioRunning
private static boolean isStudioRunning()
-
getTypeSystemLockWithMonitor
public static void getTypeSystemLockWithMonitor(java.lang.Object objectToLock)
-
dumpAllStackTraces
private static void dumpAllStackTraces(java.lang.Object objectToLock)
-
isTypeSystemLockOwner
private static boolean isTypeSystemLockOwner(java.lang.Thread thread)
-
isMonitorOwner
public static boolean isMonitorOwner(java.lang.Thread thread, java.lang.Object monitor)
-
-