8364642: G1: Remove parameter in G1CollectedHeap::abandon_collection_set()

Reviewed-by: ayang
This commit is contained in:
Thomas Schatzl 2025-08-08 07:56:29 +00:00
parent 198782c957
commit bcca5cee2d
2 changed files with 5 additions and 5 deletions

View File

@ -772,7 +772,7 @@ void G1CollectedHeap::prepare_heap_for_full_collection() {
// set between the last GC or pause and now. We need to clear the
// incremental collection set and then start rebuilding it afresh
// after this full GC.
abandon_collection_set(collection_set());
abandon_collection_set();
_hrm.remove_all_free_regions();
}
@ -2791,12 +2791,12 @@ public:
}
};
void G1CollectedHeap::abandon_collection_set(G1CollectionSet* collection_set) {
void G1CollectedHeap::abandon_collection_set() {
G1AbandonCollectionSetClosure cl;
collection_set_iterate_all(&cl);
collection_set->clear();
collection_set->stop_incremental_building();
collection_set()->clear();
collection_set()->stop_incremental_building();
}
bool G1CollectedHeap::is_old_gc_alloc_region(G1HeapRegion* hr) {

View File

@ -804,7 +804,7 @@ public:
// Abandon the current collection set without recording policy
// statistics or updating free lists.
void abandon_collection_set(G1CollectionSet* collection_set);
void abandon_collection_set();
// The concurrent marker (and the thread it runs in.)
G1ConcurrentMark* _cm;