Class GCHeapLinkedFreeHeader

java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCHeapLinkedFreeHeader

public abstract class GCHeapLinkedFreeHeader extends Object
  • Field Details

    • heapLinkedFreeHeaderPointer

      protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer
  • Constructor Details

    • GCHeapLinkedFreeHeader

      protected GCHeapLinkedFreeHeader(UDATA udata) throws CorruptDataException
      Throws:
      CorruptDataException
    • GCHeapLinkedFreeHeader

      protected GCHeapLinkedFreeHeader(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer)
  • Method Details

    • fromJ9Object

      public static GCHeapLinkedFreeHeader fromJ9Object(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object) throws CorruptDataException
      Factory method to construct an appropriate heap linked free header
      Parameters:
      object - the "J9Object" structure to view as a HeapLinkedFreeHeader
      Returns:
      an instance of GCHeapLinkedFreeHeader
      Throws:
      CorruptDataException
    • fromLinkedFreeHeaderPointer

      public static GCHeapLinkedFreeHeader fromLinkedFreeHeaderPointer(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer)
    • getSize

      public abstract UDATA getSize() throws CorruptDataException
      Get the size in bytes of this free entry. The size is measured from the beginning of the header.
      Returns:
      size in bytes
      Throws:
      CorruptDataException
    • getNext

      public abstract GCHeapLinkedFreeHeader getNext() throws CorruptDataException
      Get the next HeapLinkedFreeHeader in the free list.
      Returns:
      size in bytes
      Throws:
      CorruptDataException
    • getObject

      public com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer getObject()
      Get the object represented by this free list entry.
      Returns:
      object the free list entry cast to a J9ObjectPointer
    • getHeader

      public com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer getHeader()