8365052: G1: Remove G1CollectionSet::groups() accessors

Reviewed-by: ayang, kbarrett
This commit is contained in:
Thomas Schatzl 2025-08-25 10:18:36 +00:00
parent 5cc8673841
commit 45726a1f8b
3 changed files with 2 additions and 5 deletions

View File

@ -105,7 +105,7 @@ void G1CollectionSet::abandon_all_candidates() {
}
void G1CollectionSet::prepare_for_scan () {
groups()->prepare_for_scan();
_groups.prepare_for_scan();
}
void G1CollectionSet::add_old_region(G1HeapRegion* hr) {

View File

@ -233,9 +233,6 @@ public:
G1CollectionSetCandidates* candidates() { return &_candidates; }
const G1CollectionSetCandidates* candidates() const { return &_candidates; }
G1CSetCandidateGroupList* groups() { return &_groups; }
const G1CSetCandidateGroupList* groups() const { return &_groups; }
void prepare_for_scan();
void init_region_lengths(uint eden_cset_region_length,

View File

@ -41,7 +41,7 @@ inline void G1CollectionSet::merge_cardsets_for_collection_groups(CardOrRangeVis
uint cur_pos = start_pos;
uint count = 0;
do {
G1HeapRegionRemSet::iterate_for_merge(groups()->at(offset + cur_pos)->card_set(), cl);
G1HeapRegionRemSet::iterate_for_merge(_groups.at(offset + cur_pos)->card_set(), cl);
cur_pos++;
count++;
if (cur_pos == length) {