Package com.offbynull.coroutines.user
Class LockState
- java.lang.Object
-
- com.offbynull.coroutines.user.LockState
-
- All Implemented Interfaces:
java.io.Serializable
public final class LockState extends java.lang.Object implements java.io.Serializable
Do not use -- for internal use only.Holds on to the state of "synchronized" locks (MONITORENTER/MONITOREXIT) within a method frame.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedList
monitors
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description LockState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(java.lang.Object monitor)
Do not use -- for internal use only.void
exit(java.lang.Object monitor)
Do not use -- for internal use only.java.lang.Object[]
toArray()
Dumps monitors out as an array.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
monitors
private java.util.LinkedList monitors
-
-
Method Detail
-
enter
public void enter(java.lang.Object monitor)
Do not use -- for internal use only.Should be called after a MONITORENTER instruction has been executed. Tracks the object that MONITORENTER was used on.
- Parameters:
monitor
- object the MONITORENTER instruction was used on
-
exit
public void exit(java.lang.Object monitor)
Do not use -- for internal use only.Should be called after a MONITOREXIT instruction has been executed. Untracks the object that MONITOREXIT was used on.
- Parameters:
monitor
- object the MONITOREXIT instruction was used on
-
toArray
public java.lang.Object[] toArray()
Dumps monitors out as an array. Order is retained.- Returns:
- monitors
-
-