< prev index next >

src/share/vm/gc/g1/heapRegion.hpp

Print this page
rev 11545 : [mq]: 8159978-collection-set-as-array
rev 11546 : [mq]: 8159978-erikh-review

*** 732,747 **** }; // HeapRegionClosure is used for iterating over regions. // Terminates the iteration when the "doHeapRegion" method returns "true". class HeapRegionClosure : public StackObj { bool _complete; public: HeapRegionClosure(): _complete(true) {} - void incomplete() { _complete = false; } - // Typically called on each region until it returns true. virtual bool doHeapRegion(HeapRegion* r) = 0; // True after iteration if the closure was applied to all heap regions // and returned "false" in all cases. --- 732,750 ---- }; // HeapRegionClosure is used for iterating over regions. // Terminates the iteration when the "doHeapRegion" method returns "true". class HeapRegionClosure : public StackObj { + friend class HeapRegionManager; + friend class G1CollectionSet; + bool _complete; + void incomplete() { _complete = false; } + public: HeapRegionClosure(): _complete(true) {} // Typically called on each region until it returns true. virtual bool doHeapRegion(HeapRegion* r) = 0; // True after iteration if the closure was applied to all heap regions // and returned "false" in all cases.
< prev index next >