Module openj9.dtfj

Class GCHeapRegionIterator

    • Constructor Detail

      • 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 Detail

      • 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 iterate
        space - only iterate regions which belong to the specified memory space
        includeTableRegions - include table regions in the iteration
        includeAuxRegions - include auxiliary regions in the iteration
        Returns:
        an instance of GCHeapRegionIterator
        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 iterate
        space - 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 iterate
        includeTableRegions - include table regions in the iteration
        includeAuxRegions - 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