< prev index next >

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

Print this page
rev 7696 : 8030646: track collection set membership in one place

*** 654,663 **** --- 654,666 ---- _in_cset_fast_test.set_in_young(r->hrm_index()); } void register_old_region_with_in_cset_fast_test(HeapRegion* r) { _in_cset_fast_test.set_in_old(r->hrm_index()); } + void clear_in_cset_fast_test(const HeapRegion* hr) { + _in_cset_fast_test.clear(hr); + } // This is a fast test on whether a reference points into the // collection set or not. Assume that the reference // points into the heap. inline bool in_cset_fast_test(oop obj);
*** 1243,1252 **** --- 1246,1256 ---- // Return "TRUE" iff the given object address is within the collection // set. Slow implementation. inline bool obj_in_cs(oop obj); + inline bool is_in_cset(const HeapRegion *hr); inline bool is_in_cset(oop obj); inline bool is_in_cset_or_humongous(const oop obj); private:
< prev index next >