equal
deleted
inserted
replaced
234 |
234 |
235 HeapRegionType _type; |
235 HeapRegionType _type; |
236 |
236 |
237 // For a humongous region, region in which it starts. |
237 // For a humongous region, region in which it starts. |
238 HeapRegion* _humongous_start_region; |
238 HeapRegion* _humongous_start_region; |
239 // True iff the region is in current collection_set. |
|
240 bool _in_collection_set; |
|
241 |
239 |
242 // True iff an attempt to evacuate an object in the region failed. |
240 // True iff an attempt to evacuate an object in the region failed. |
243 bool _evacuation_failed; |
241 bool _evacuation_failed; |
244 |
242 |
245 // A heap region may be a member one of a number of special subsets, each |
243 // A heap region may be a member one of a number of special subsets, each |
485 // If the region has a remembered set, return a pointer to it. |
483 // If the region has a remembered set, return a pointer to it. |
486 HeapRegionRemSet* rem_set() const { |
484 HeapRegionRemSet* rem_set() const { |
487 return _rem_set; |
485 return _rem_set; |
488 } |
486 } |
489 |
487 |
490 // True iff the region is in current collection_set. |
488 bool in_collection_set() const; |
491 bool in_collection_set() const { |
489 |
492 return _in_collection_set; |
|
493 } |
|
494 void set_in_collection_set(bool b) { |
|
495 _in_collection_set = b; |
|
496 } |
|
497 HeapRegion* next_in_collection_set() { |
490 HeapRegion* next_in_collection_set() { |
498 assert(in_collection_set(), "should only invoke on member of CS."); |
491 assert(in_collection_set(), "should only invoke on member of CS."); |
499 assert(_next_in_special_set == NULL || |
492 assert(_next_in_special_set == NULL || |
500 _next_in_special_set->in_collection_set(), |
493 _next_in_special_set->in_collection_set(), |
501 "Malformed CS."); |
494 "Malformed CS."); |