< 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,16 +732,19 @@
};
// 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) {}
- 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.
< prev index next >