Module openj9.dtfj

Class GCHeapSpanRegionIterator

All Implemented Interfaces:
SlotIterator, Iterator

public class GCHeapSpanRegionIterator extends GCIterator
  • Constructor Details

    • GCHeapSpanRegionIterator

      protected GCHeapSpanRegionIterator(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer region) throws CorruptDataException
      Throws:
      CorruptDataException
  • Method Details

    • fromMMHeapRegionDescriptor

      public static GCHeapSpanRegionIterator fromMMHeapRegionDescriptor(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer region) throws CorruptDataException
      Factory method to construct an appropriate segment iterator.
      Parameters:
      manager - the MM_HeapRegionManagerPointer to iterate
      region - the MM_HeapRegionDescriptorPointer representing the spanning region
      Returns:
      an instance of GCHeapSpanRegionIterator
      Throws:
      CorruptDataException
    • hasNext

      public boolean hasNext()
      Description copied from interface: java.util.Iterator
      Returns true if the iteration has more elements. (In other words, returns true if Iterator.next() would return an element rather than throwing an exception.)
      Returns:
      true if the iteration has more elements
    • next

      public com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Returns:
      the next element in the iteration
    • nextAddress

      public VoidPointer nextAddress()