< prev index next >

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

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

*** 234,245 **** HeapRegionType _type; // For a humongous region, region in which it starts. HeapRegion* _humongous_start_region; - // True iff the region is in current collection_set. - bool _in_collection_set; // True iff an attempt to evacuate an object in the region failed. bool _evacuation_failed; // A heap region may be a member one of a number of special subsets, each --- 234,243 ----
*** 485,501 **** // If the region has a remembered set, return a pointer to it. HeapRegionRemSet* rem_set() const { return _rem_set; } ! // True iff the region is in current collection_set. ! bool in_collection_set() const { ! return _in_collection_set; ! } ! void set_in_collection_set(bool b) { ! _in_collection_set = b; ! } HeapRegion* next_in_collection_set() { assert(in_collection_set(), "should only invoke on member of CS."); assert(_next_in_special_set == NULL || _next_in_special_set->in_collection_set(), "Malformed CS."); --- 483,494 ---- // If the region has a remembered set, return a pointer to it. HeapRegionRemSet* rem_set() const { return _rem_set; } ! bool in_collection_set() const; ! HeapRegion* next_in_collection_set() { assert(in_collection_set(), "should only invoke on member of CS."); assert(_next_in_special_set == NULL || _next_in_special_set->in_collection_set(), "Malformed CS.");
< prev index next >