Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • monitors

        private java.util.LinkedList monitors
    • Constructor Detail

      • LockState

        public LockState()
    • 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