java.lang.Object
com.ibm.dtfj.java.j9.JavaHeap
- All Implemented Interfaces:
JavaHeap
-
Constructor Summary
ConstructorsConstructorDescriptionJavaHeap(JavaRuntime vm, String name, ImagePointer id, ImagePointer start, long size, int arrayletIdOffset, int arrayletIdWidth, long arrayletIdMask, long arrayletIdResult, int fobjectSize, int fobjectPointerScale, long fobjectPointerDisplacement, int classOffset, int classSize, long classAlignment, boolean isSWH) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.longintlongintlongintgetName()Get a brief textual description of this heap.Get the set of objects which are stored in this heap.Get the set of contiguous memory regions which form this heap.inthashCode()Answers an integer hash code for the receiver.booleanisSWH()readClassPointerRelativeTo(ImagePointer pointer) readFObjectAt(ImagePointer basePointer, long offset) regionForPointer(ImagePointer address) voidsetRegions(Vector regions) longtokenToPointer(long fobject)
-
Constructor Details
-
JavaHeap
public JavaHeap(JavaRuntime vm, String name, ImagePointer id, ImagePointer start, long size, int arrayletIdOffset, int arrayletIdWidth, long arrayletIdMask, long arrayletIdResult, int fobjectSize, int fobjectPointerScale, long fobjectPointerDisplacement, int classOffset, int classSize, long classAlignment, boolean isSWH)
-
-
Method Details
-
getSections
Description copied from interface:JavaHeapGet the set of contiguous memory regions which form this heap.- Specified by:
getSectionsin interfaceJavaHeap- Returns:
- an iterator over the collection of contiguous memory regions which form this heap
- See Also:
-
getName
Description copied from interface:JavaHeapGet a brief textual description of this heap. -
getObjects
Description copied from interface:JavaHeapGet the set of objects which are stored in this heap.- Specified by:
getObjectsin interfaceJavaHeap- Returns:
- an iterator over the collection of objects which are stored in this heap
- See Also:
-
equals
Description copied from class:java.lang.ObjectCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==). -
hashCode
public int hashCode()Description copied from class:java.lang.ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method. -
regionForPointer
-
getArrayletIdentificationWidth
public int getArrayletIdentificationWidth() -
getArrayletIdentificationOffset
public int getArrayletIdentificationOffset() -
getArrayletIdentificationBitmask
public long getArrayletIdentificationBitmask() -
getArrayletIdentificationResult
public long getArrayletIdentificationResult() -
setRegions
-
getFObjectSize
public int getFObjectSize() -
tokenToPointer
public long tokenToPointer(long fobject) -
readClassPointerRelativeTo
public ImagePointer readClassPointerRelativeTo(ImagePointer pointer) throws MemoryAccessException, CorruptDataException -
readFObjectAt
public ImagePointer readFObjectAt(ImagePointer basePointer, long offset) throws MemoryAccessException, CorruptDataException -
getClassAlignment
public long getClassAlignment() -
isSWH
public boolean isSWH()
-