- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.gc.GCHeapLinkedFreeHeader
-
public abstract class GCHeapLinkedFreeHeader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer
heapLinkedFreeHeaderPointer
-
Constructor Summary
Constructors Modifier Constructor Description protected
GCHeapLinkedFreeHeader(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer)
protected
GCHeapLinkedFreeHeader(UDATA udata)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GCHeapLinkedFreeHeader
fromJ9Object(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object)
Factory method to construct an appropriate heap linked free headerstatic GCHeapLinkedFreeHeader
fromLinkedFreeHeaderPointer(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer)
com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer
getHeader()
abstract GCHeapLinkedFreeHeader
getNext()
Get the next HeapLinkedFreeHeader in the free list.com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
getObject()
Get the object represented by this free list entry.abstract UDATA
getSize()
Get the size in bytes of this free entry.
-
-
-
Constructor Detail
-
GCHeapLinkedFreeHeader
protected GCHeapLinkedFreeHeader(UDATA udata) throws CorruptDataException
- Throws:
CorruptDataException
-
GCHeapLinkedFreeHeader
protected GCHeapLinkedFreeHeader(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapLinkedFreeHeaderPointer heapLinkedFreeHeaderPointer)
-
-
Method Detail
-
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()
-
-