< prev index next >

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

Print this page

        

*** 717,741 **** void verify_rem_set(VerifyOption vo, bool *failures) const; void verify_rem_set() const; }; // HeapRegionClosure is used for iterating over regions. ! // Terminates the iteration when the "do_heap_region" method returns "true". class HeapRegionClosure : public StackObj { friend class HeapRegionManager; friend class G1CollectionSet; ! bool _is_complete; ! void set_incomplete() { _is_complete = false; } public: ! HeapRegionClosure(): _is_complete(true) {} // Typically called on each region until it returns true. ! virtual bool do_heap_region(HeapRegion* r) = 0; // True after iteration if the closure was applied to all heap regions // and returned "false" in all cases. ! bool is_complete() { return _is_complete; } }; #endif // SHARE_VM_GC_G1_HEAPREGION_HPP --- 717,741 ---- void verify_rem_set(VerifyOption vo, bool *failures) const; void verify_rem_set() const; }; // 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. ! bool complete() { return _complete; } }; #endif // SHARE_VM_GC_G1_HEAPREGION_HPP
< prev index next >