Class JavaHeap
java.lang.Object
com.ibm.dtfj.java.j9.JavaHeap
-
Constructor Summary
ConstructorDescriptionJavaHeap
(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 TypeMethodDescriptionboolean
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.long
int
long
int
long
int
getName()
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.int
hashCode()
Answers an integer hash code for the receiver.boolean
isSWH()
readClassPointerRelativeTo
(ImagePointer pointer) readFObjectAt
(ImagePointer basePointer, long offset) regionForPointer
(ImagePointer address) void
setRegions
(Vector regions) long
tokenToPointer
(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:JavaHeap
Get the set of contiguous memory regions which form this heap.- Specified by:
getSections
in interfaceJavaHeap
- Returns:
- an iterator over the collection of contiguous memory regions which form this heap
- See Also:
-
getName
-
getObjects
Description copied from interface:JavaHeap
Get the set of objects which are stored in this heap.- Specified by:
getObjects
in interfaceJavaHeap
- Returns:
- an iterator over the collection of objects which are stored in this heap
- See Also:
-
equals
Description copied from class:java.lang.Object
Compares 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.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must 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()
-