Module openj9.dtfj

Class ObjectAccessBarrier


  • public final class ObjectAccessBarrier
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer convertPointerFromToken​(long token)
      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.
      static ObjectMonitor 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)  
    • Method Detail

      • 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.