Class ObjectAccessBarrier

java.lang.Object
com.ibm.j9ddr.vm29.j9.ObjectAccessBarrier

public final class ObjectAccessBarrier extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final MMObjectAccessBarrier
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    Converts token (e.g. compressed pointer value) into real heap pointer.
    static long
    convertTokenFromPointer(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer pointer)
    Converts real heap pointer into token (e.g. compressed pointer value).
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    getFinalizeLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Fetch the finalize link field of object.
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer
    getLockword(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Return the lockword for the given object, or NULL if it does not have a lockword.
    getMonitor(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Return an object representing the monitor for the given object, or NULL if it does not have a lockword/monitor.
    static I32
    getObjectHashCode(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Determine the basic hash code for the specified object.
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    getOwnableSynchronizerLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Fetch the ownableSynchronizer link field of object.
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    getReferenceLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
    Fetch the reference link field of the specified reference object.
    static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
    isObjectInOwnableSynchronizerList(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
     

    Methods declared in class java.lang.Object

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

  • Method Details

    • getObjectHashCode

      public static I32 getObjectHashCode(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Determine the basic hash code for the specified object.
      Parameters:
      object - [in] the object to be hashed
      Returns:
      the persistent, basic hash code for the object
      Throws:
      CorruptDataException
    • getFinalizeLink

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getFinalizeLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Fetch the finalize link field of object.
      Parameters:
      object - [in] the object to read
      Returns:
      the value stored in the object's finalizeLink field
      Throws:
      CorruptDataException
    • getOwnableSynchronizerLink

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getOwnableSynchronizerLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Fetch the ownableSynchronizer link field of object.
      Parameters:
      object - [in] the object to read
      Returns:
      the value stored in the object's ownableSynchronizer field
      Throws:
      CorruptDataException
    • isObjectInOwnableSynchronizerList

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer isObjectInOwnableSynchronizerList(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Throws:
      CorruptDataException
    • getReferenceLink

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getReferenceLink(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Fetch the reference link field of the specified reference object.
      Parameters:
      object - the object to read
      Returns:
      the value stored in the object's reference link field
      Throws:
      CorruptDataException
    • getLockword

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectMonitorPointer getLockword(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Return the lockword for the given object, or NULL if it does not have a lockword.
      Parameters:
      object - the object who's lockword we are after
      Returns:
      An J9ObjectMonitorPointer representing NULL, a flatlock, or an inflated monitor.
      Throws:
      CorruptDataException
    • getMonitor

      public static ObjectMonitor getMonitor(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Return an object representing the monitor for the given object, or NULL if it does not have a lockword/monitor.
      Throws:
      CorruptDataException
    • convertPointerFromToken

      public static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer convertPointerFromToken(long token)
      Converts token (e.g. compressed pointer value) into real heap pointer.
      Returns:
      the heap pointer value.
    • convertTokenFromPointer

      public static long convertTokenFromPointer(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer pointer)
      Converts real heap pointer into token (e.g. compressed pointer value).
      Returns:
      the compressed pointer value.