Class TypeSystemLockHelper


  • public class TypeSystemLockHelper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Boolean _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.
    • Field Detail

      • _bStudioRunning

        private static java.lang.Boolean _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 Detail

      • TypeSystemLockHelper

        public TypeSystemLockHelper()
    • 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)