src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp

Print this page

        

@@ -1393,10 +1393,14 @@
 
   // Iterate over heap regions, in address order, terminating the
   // iteration early if the "doHeapRegion" method returns "true".
   void heap_region_iterate(HeapRegionClosure* blk) const;
 
+  // Iterate over heap regions in the interval [start, end), applying the given closure.
+  // Terminates early if closure "doHeapRegion" returns true.
+  void heap_region_iterate_range(HeapRegionClosure* cl, uint start, uint end) const;
+
   // Return the region with the given index. It assumes the index is valid.
   inline HeapRegion* region_at(uint index) const;
 
   // Calculate the region index of the given address. Given address must be
   // within the heap.