Module openj9.dtfj

Interface JavaHeap

All Known Implementing Classes:
DTFJJavaHeap, JavaHeap

public interface JavaHeap

Represents a heap of managed objects.

There may be multiple heaps within a JVM, for instance a generational heap and a class heap. Additionally, heaps may consist of non-contiguous memory regions. For instance, an object heap may be divided into a hot and cold section.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
    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
    Answers an integer hash code for the receiver.
  • Method Details

    • getSections

      Iterator getSections()
      Get the set of contiguous memory regions which form this heap.
      Returns:
      an iterator over the collection of contiguous memory regions which form this heap
      See Also:
    • getName

      String getName()
      Get a brief textual description of this heap.
      Returns:
      a brief textual description of this heap
    • getObjects

      Iterator getObjects()
      Get the set of objects which are stored in this heap.
      Returns:
      an iterator over the collection of objects which are stored in this heap
      See Also:
    • equals

      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 (==).
      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

      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.
      Overrides:
      hashCode in class Object
      Returns:
      the receiver's hash.
      See Also: