- java.lang.Object
-
- com.ibm.j9ddr.vm29.tools.ddrinteractive.monitors.DeadlockUtils
-
public class DeadlockUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DeadlockUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
findThreadCycle(com.ibm.j9ddr.vm29.pointer.generated.J9ThreadPointer aThread, HashMap<Integer,NativeDeadlockGraphNode> deadlocks, HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object> objectMonitorsMap)
static HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object>
readObjectMonitors(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm)
Returns a hash map of Object Pointers to their respective mutex (Object Monitor or System Monitor)static void
writeDeadlockNode(NativeDeadlockGraphNode node, boolean isCycleHead, HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object> objectMonitorsMap, PrintStream out)
'
-
-
-
Method Detail
-
findThreadCycle
public static void findThreadCycle(com.ibm.j9ddr.vm29.pointer.generated.J9ThreadPointer aThread, HashMap<Integer,NativeDeadlockGraphNode> deadlocks, HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object> objectMonitorsMap) throws CorruptDataException
- Parameters:
vmThread
-map
-- Throws:
CorruptDataException
-
writeDeadlockNode
public static void writeDeadlockNode(NativeDeadlockGraphNode node, boolean isCycleHead, HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object> objectMonitorsMap, PrintStream out) throws CorruptDataException
'- Parameters:
node
-isCycleHead
-objectMonitorsMap
-out
-- Throws:
CorruptDataException
-
readObjectMonitors
public static HashMap<com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer,Object> readObjectMonitors(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm) throws CorruptDataException
Returns a hash map of Object Pointers to their respective mutex (Object Monitor or System Monitor)- Parameters:
vm
-- Returns:
- Throws:
CorruptDataException
-
-