Module openj9.dtfj

Class JCJavaMonitor

java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaMonitor
All Implemented Interfaces:
JavaMonitor

public class JCJavaMonitor extends Object implements JavaMonitor
  • Constructor Details

  • Method Details

    • getID

      public ImagePointer getID()
      Description copied from interface: JavaMonitor
      Get the identifier for this monitor
      Specified by:
      getID in interface JavaMonitor
      Returns:
      The pointer which uniquely identifies this monitor in memory.
    • getName

      public String getName() throws CorruptDataException
      Description copied from interface: JavaMonitor
      Note that the name of a JavaMonitor is not necessarily meaningful but is provided here as it is usually present in the running VM. If there is no name for the monitor a synthetic name will be created by DTFJ.
      Specified by:
      getName in interface JavaMonitor
      Returns:
      the name of the monitor (never null)
      Throws:
      CorruptDataException
    • getEnterWaiters

      public Iterator getEnterWaiters()
      Description copied from interface: JavaMonitor
      Get the set of threads waiting to enter the monitor
      Specified by:
      getEnterWaiters in interface JavaMonitor
      Returns:
      an iterator over the collection of threads waiting to enter this monitor
      See Also:
    • getNotifyWaiters

      public Iterator getNotifyWaiters()
      Description copied from interface: JavaMonitor
      Get the set of threads waiting to be notified on the monitor (in the Object.wait method)
      Specified by:
      getNotifyWaiters in interface JavaMonitor
      Returns:
      an iterator over the collection of threads waiting to be notified on this monitor
      See Also:
    • getObject

      public JavaObject getObject()
      Description copied from interface: JavaMonitor
      Get the object associated with this monitor.
      Specified by:
      getObject in interface JavaMonitor
      Returns:
      the object associated with this monitor, or null if this is a raw monitor or a valid object could not be retrieved.
    • getOwner

      public JavaThread getOwner() throws CorruptDataException
      Description copied from interface: JavaMonitor
      Get the thread which currently owns the monitor
      Specified by:
      getOwner in interface JavaMonitor
      Returns:
      the owner of the monitor, or null if the monitor is unowned
      Throws:
      CorruptDataException
    • addEnterWaiter

      public void addEnterWaiter(ImagePointer threadID)
      NOT in DTFJ
      Parameters:
      threadID -
    • addNotifyWaiter

      public void addNotifyWaiter(ImagePointer threadID)
      NOT in DTFJ
      Parameters:
      threadID -
    • setObject

      public void setObject(JavaObject encompassingObject)
      NOT in DTFJ
      Parameters:
      encompassingObject -
    • setOwner

      public void setOwner(long javaThread)
      NOT in DTFJ
      Parameters:
      javaThread -