Class GCHeapRegionIterator
java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCBase
com.ibm.j9ddr.vm29.j9.gc.GCIterator
com.ibm.j9ddr.vm29.j9.gc.GCHeapRegionIterator
- All Implemented Interfaces:
SlotIterator
,Iterator
-
Constructor Summary
ModifierConstructorDescriptionprotected
GCHeapRegionIterator
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space, boolean includeTableRegions, boolean includeAuxRegions) -
Method Summary
Modifier and TypeMethodDescriptionstatic GCHeapRegionIterator
from()
static GCHeapRegionIterator
fromMMHeapRegionManager
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, boolean includeTableRegions, boolean includeAuxRegions) Factory method to construct an appropriate segment iterator.static GCHeapRegionIterator
fromMMHeapRegionManager
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space) Factory method to construct an appropriate segment iterator.static GCHeapRegionIterator
fromMMHeapRegionManager
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space, boolean includeTableRegions, boolean includeAuxRegions) Factory method to construct an appropriate segment iterator.protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer
getNextAuxiliaryRegion
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer heapRegion) protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer
getNextTableRegion
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer heapRegion) boolean
hasNext()
Returnstrue
if the iteration has more elements.next()
Returns the next element in the iteration.protected boolean
shouldIncludeRegion
(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer region) Determine if the specified region should be included or skipped.Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVM
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
GCHeapRegionIterator
protected GCHeapRegionIterator(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space, boolean includeTableRegions, boolean includeAuxRegions) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
fromMMHeapRegionManager
public static GCHeapRegionIterator fromMMHeapRegionManager(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space, boolean includeTableRegions, boolean includeAuxRegions) throws CorruptDataException Factory method to construct an appropriate segment iterator.- Parameters:
manager
- the MM_HeapRegionManagerPointer to iteratespace
- only iterate regions which belong to the specified memory spaceincludeTableRegions
- include table regions in the iterationincludeAuxRegions
- include auxiliary regions in the iteration- Returns:
- an instance of GCHeapRegionIterator
- Throws:
CorruptDataException
-
from
- Throws:
CorruptDataException
-
fromMMHeapRegionManager
public static GCHeapRegionIterator fromMMHeapRegionManager(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, com.ibm.j9ddr.vm29.pointer.generated.MM_MemorySpacePointer space) throws CorruptDataException Factory method to construct an appropriate segment iterator.- Parameters:
manager
- the MM_HeapRegionManagerPointer to iteratespace
- only iterate regions which belong to the specified memory space- Returns:
- an instance of GCHeapRegionIterator
- Throws:
CorruptDataException
-
fromMMHeapRegionManager
public static GCHeapRegionIterator fromMMHeapRegionManager(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionManagerPointer manager, boolean includeTableRegions, boolean includeAuxRegions) throws CorruptDataException Factory method to construct an appropriate segment iterator.- Parameters:
manager
- the MM_HeapRegionManagerPointer to iterateincludeTableRegions
- include table regions in the iterationincludeAuxRegions
- include auxiliary regions in the iteration- Returns:
- an instance of GCHeapRegionIterator
- Throws:
CorruptDataException
-
shouldIncludeRegion
protected boolean shouldIncludeRegion(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer region) throws CorruptDataException Determine if the specified region should be included or skipped.- Returns:
- true if the region should be included, false otherwise
- Throws:
CorruptDataException
-
getNextAuxiliaryRegion
protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer getNextAuxiliaryRegion(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer heapRegion) throws CorruptDataException - Throws:
CorruptDataException
-
getNextTableRegion
protected com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer getNextTableRegion(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorPointer heapRegion) throws CorruptDataException - Throws:
CorruptDataException
-
hasNext
public boolean hasNext()Description copied from interface:java.util.Iterator
Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifIterator.next()
would return an element rather than throwing an exception.)- Returns:
true
if the iteration has more elements
-
next
Description copied from interface:java.util.Iterator
Returns the next element in the iteration.- Returns:
- the next element in the iteration
-
nextAddress
-