8333917: G1: Refactor G1CollectedHeap::register_old_region_with_region_attr

Reviewed-by: gli, tschatzl
This commit is contained in:
Albert Mingkun Yang 2024-06-11 07:53:53 +00:00
parent 0e4d4a0c31
commit 788b876ebd

View File

@ -227,7 +227,7 @@ void G1CollectedHeap::register_region_with_region_attr(G1HeapRegion* r) {
void G1CollectedHeap::register_old_region_with_region_attr(G1HeapRegion* r) {
assert(!r->has_pinned_objects(), "must be");
assert(r->rem_set()->is_complete(), "must be");
_region_attr.set_in_old(r->hrm_index(), r->rem_set()->is_tracked());
_region_attr.set_in_old(r->hrm_index(), true);
_rem_set->exclude_region_from_scan(r->hrm_index());
}