Package gw.lang.reflect.module
Class TypeSystemLockHelper
java.lang.Object
gw.lang.reflect.module.TypeSystemLockHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static BooleanWe 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 -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddumpAllStackTraces(Object objectToLock) static voidgetTypeSystemLockWithMonitor(Object objectToLock) static booleanisMonitorOwner(Thread thread, Object monitor) private static booleanprivate static booleanisTypeSystemLockOwner(Thread thread)
-
Field Details
-
_bStudioRunning
We 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 Details
-
TypeSystemLockHelper
public TypeSystemLockHelper()
-
-
Method Details
-
isStudioRunning
private static boolean isStudioRunning() -
getTypeSystemLockWithMonitor
-
dumpAllStackTraces
-
isTypeSystemLockOwner
-
isMonitorOwner
-