Class LockState

java.lang.Object
com.offbynull.coroutines.user.LockState
All Implemented Interfaces:
Serializable

public final class LockState extends Object implements 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 Details

  • Constructor Details

    • LockState

      public LockState()
  • Method Details

    • enter

      public void enter(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(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 Object[] toArray()
      Dumps monitors out as an array. Order is retained.
      Returns:
      monitors