591 |
591 |
592 // Modify the reclaim candidate set and test for presence. |
592 // Modify the reclaim candidate set and test for presence. |
593 // These are only valid for starts_humongous regions. |
593 // These are only valid for starts_humongous regions. |
594 inline void set_humongous_reclaim_candidate(uint region, bool value); |
594 inline void set_humongous_reclaim_candidate(uint region, bool value); |
595 inline bool is_humongous_reclaim_candidate(uint region); |
595 inline bool is_humongous_reclaim_candidate(uint region); |
|
596 inline void set_has_humongous_reclaim_candidate(bool value); |
596 |
597 |
597 // Remove from the reclaim candidate set. Also remove from the |
598 // Remove from the reclaim candidate set. Also remove from the |
598 // collection set so that later encounters avoid the slow path. |
599 // collection set so that later encounters avoid the slow path. |
599 inline void set_humongous_is_live(oop obj); |
600 inline void set_humongous_is_live(oop obj); |
600 |
601 |
601 // Register the given region to be part of the collection set. |
602 // Register the given region to be part of the collection set. |
602 inline void register_humongous_region_with_region_attr(uint index); |
603 inline void register_humongous_region_with_region_attr(uint index); |
603 // Update region attributes table with information about all regions. |
604 |
604 void register_regions_with_region_attr(); |
|
605 // We register a region with the fast "in collection set" test. We |
605 // We register a region with the fast "in collection set" test. We |
606 // simply set to true the array slot corresponding to this region. |
606 // simply set to true the array slot corresponding to this region. |
607 void register_young_region_with_region_attr(HeapRegion* r) { |
607 void register_young_region_with_region_attr(HeapRegion* r) { |
608 _region_attr.set_in_young(r->hrm_index()); |
608 _region_attr.set_in_young(r->hrm_index()); |
609 } |
609 } |