Package com.offbynull.coroutines.user
Class LockState
java.lang.Object
com.offbynull.coroutines.user.LockState
- All Implemented Interfaces:
Serializable
Do not use -- for internal use only.
Holds on to the state of "synchronized" locks (MONITORENTER/MONITOREXIT) within a method frame.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
monitors
-
-
Constructor Details
-
LockState
public LockState()
-
-
Method Details
-
enter
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
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
Dumps monitors out as an array. Order is retained.- Returns:
- monitors
-