Class JavaHeap

java.lang.Object
com.ibm.dtfj.java.j9.JavaHeap
All Implemented Interfaces:
JavaHeap

public class JavaHeap extends Object implements JavaHeap
  • 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

      public Iterator getSections()
      Description copied from interface: JavaHeap
      Get the set of contiguous memory regions which form this heap.
      Specified by:
      getSections in interface JavaHeap
      Returns:
      an iterator over the collection of contiguous memory regions which form this heap
      See Also:
    • getName

      public String getName()
      Description copied from interface: JavaHeap
      Get a brief textual description of this heap.
      Specified by:
      getName in interface JavaHeap
      Returns:
      a brief textual description of this heap
    • getObjects

      public Iterator getObjects()
      Description copied from interface: JavaHeap
      Get the set of objects which are stored in this heap.
      Specified by:
      getObjects in interface JavaHeap
      Returns:
      an iterator over the collection of objects which are stored in this heap
      See Also:
    • equals

      public boolean equals(Object obj)
      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 (==).
      Specified by:
      equals in interface JavaHeap
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      True if the given object refers to the same Java Heap in the image
      See Also:
    • hashCode

      public int hashCode()
      Description copied from class: java.lang.Object
      Answers an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.
      Specified by:
      hashCode in interface JavaHeap
      Overrides:
      hashCode in class Object
      Returns:
      the receiver's hash.
      See Also:
    • regionForPointer

      public JavaHeapRegion regionForPointer(ImagePointer address)
    • getArrayletIdentificationWidth

      public int getArrayletIdentificationWidth()
    • getArrayletIdentificationOffset

      public int getArrayletIdentificationOffset()
    • getArrayletIdentificationBitmask

      public long getArrayletIdentificationBitmask()
    • getArrayletIdentificationResult

      public long getArrayletIdentificationResult()
    • setRegions

      public void setRegions(Vector regions)
    • getFObjectSize

      public int getFObjectSize()
    • tokenToPointer

      public long tokenToPointer(long fobject)
    • readClassPointerRelativeTo

    • readFObjectAt

      public ImagePointer readFObjectAt(ImagePointer basePointer, long offset) throws MemoryAccessException, CorruptDataException
      Throws:
      MemoryAccessException
      CorruptDataException
    • getClassAlignment

      public long getClassAlignment()
    • isSWH

      public boolean isSWH()