mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-03 09:12:59 +00:00
8364642: G1: Remove parameter in G1CollectedHeap::abandon_collection_set()
Reviewed-by: ayang
This commit is contained in:
parent
198782c957
commit
bcca5cee2d
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user