Module openj9.dtfj

Class ObjectMonitor

java.lang.Object
com.ibm.j9ddr.vm29.j9.ObjectMonitor
All Implemented Interfaces:
Comparable<ObjectMonitor>

public abstract class ObjectMonitor extends Object implements Comparable<ObjectMonitor>
  • Constructor Details

    • ObjectMonitor

      public ObjectMonitor()
  • Method Details

    • fromJ9Object

      public static ObjectMonitor fromJ9Object(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Return an ObjectMonitor representing the monitor for the given object, or null if it does not have a lockword.
      Parameters:
      object - the object to read
      Returns:
      the ObjectMonitor corresponding to the object
      Throws:
      CorruptDataException
    • getObject

      public abstract com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getObject()
    • getLockword

      public abstract com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer getLockword()
    • getOwner

      public abstract com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer getOwner() throws CorruptDataException
      Throws:
      CorruptDataException
    • getCount

      public abstract long getCount() throws CorruptDataException
      Throws:
      CorruptDataException
    • isInflated

      public abstract boolean isInflated()
    • isInTable

      public abstract boolean isInTable()
    • isContended

      public abstract boolean isContended() throws CorruptDataException
      Throws:
      CorruptDataException
    • getWaitingThreads

      public abstract List<com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer> getWaitingThreads() throws CorruptDataException
      Throws:
      CorruptDataException
    • getBlockedThreads

      public abstract List<com.ibm.j9ddr.vm29.pointer.generated.J9VMThreadPointer> getBlockedThreads() throws CorruptDataException
      Throws:
      CorruptDataException
    • getInflatedMonitor

      public abstract com.ibm.j9ddr.vm29.pointer.generated.J9ThreadAbstractMonitorPointer getInflatedMonitor()
    • getJ9ObjectMonitorPointer

      public abstract com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer getJ9ObjectMonitorPointer()