Package org.h2.util

Class AbbaDetector

java.lang.Object
org.h2.util.AbbaDetector

public class AbbaDetector extends Object
Utility to detect AB-BA deadlocks.
  • Field Details

  • Constructor Details

    • AbbaDetector

      public AbbaDetector()
  • Method Details

    • begin

      public static Object begin(Object o)
      This method is called just before or just after an object is synchronized.
      Parameters:
      o - the object, or null for the current class
      Returns:
      the object that was passed
    • getTest

      private static Object getTest(Object o)
    • getObjectName

      private static String getObjectName(Object o)
    • markHigher

      private static void markHigher(Object o, Deque<Object> older)