equal
deleted
inserted
replaced
495 // If the region has a remembered set, return a pointer to it. |
495 // If the region has a remembered set, return a pointer to it. |
496 HeapRegionRemSet* rem_set() const { |
496 HeapRegionRemSet* rem_set() const { |
497 return _rem_set; |
497 return _rem_set; |
498 } |
498 } |
499 |
499 |
500 bool in_collection_set() const; |
500 inline bool in_collection_set() const; |
501 |
501 |
502 HeapRegion* next_in_collection_set() { |
502 inline HeapRegion* next_in_collection_set() const; |
503 assert(in_collection_set(), "should only invoke on member of CS."); |
503 inline void set_next_in_collection_set(HeapRegion* r); |
504 assert(_next_in_special_set == NULL || |
|
505 _next_in_special_set->in_collection_set(), |
|
506 "Malformed CS."); |
|
507 return _next_in_special_set; |
|
508 } |
|
509 void set_next_in_collection_set(HeapRegion* r) { |
|
510 assert(in_collection_set(), "should only invoke on member of CS."); |
|
511 assert(r == NULL || r->in_collection_set(), "Malformed CS."); |
|
512 _next_in_special_set = r; |
|
513 } |
|
514 |
504 |
515 void set_allocation_context(AllocationContext_t context) { |
505 void set_allocation_context(AllocationContext_t context) { |
516 _allocation_context = context; |
506 _allocation_context = context; |
517 } |
507 } |
518 |
508 |