Package org.h2.util
Class AbbaDetector
java.lang.Object
org.h2.util.AbbaDetector
Utility to detect AB-BA deadlocks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of (object A) -> ( map of (object locked before object A) -> (stack trace where locked) )private static final ThreadLocal
<Deque<Object>> private static final boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TRACE
private static final boolean TRACE- See Also:
-
STACK
-
LOCK_ORDERING
Map of (object A) -> ( map of (object locked before object A) -> (stack trace where locked) ) -
KNOWN_DEADLOCKS
-
-
Constructor Details
-
AbbaDetector
public AbbaDetector()
-
-
Method Details
-
begin
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
-
getObjectName
-
markHigher
-