Skip to content

Commit

Permalink
remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBing committed Dec 15, 2023
1 parent bdebf19 commit 1b1745e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/psCardTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void PSCardTable::scan_obj_with_limit(PSPromotionManager* pm,
}
}

void PSCardTable::pre_scavenge(HeapWord* old_gen_bottom, uint active_workers) {
void PSCardTable::pre_scavenge(uint active_workers) {
_preprocessing_active_workers = active_workers;
}

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/psCardTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PSCardTable: public CardTable {
_preprocessing_active_workers(0) {}

// Scavenge support
void pre_scavenge(HeapWord* old_gen_bottom, uint active_workers);
void pre_scavenge(uint active_workers);
// Scavenge contents of stripes with the given index.
void scavenge_contents_parallel(ObjectStartArray* start_array,
HeapWord* old_gen_bottom,
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/psScavenge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class ScavengeRootsTask : public WorkerTask {

if (!_is_old_gen_empty) {
PSCardTable* card_table = ParallelScavengeHeap::heap()->card_table();
card_table->pre_scavenge(_old_gen->object_space()->bottom(), active_workers);
card_table->pre_scavenge(active_workers);
}
}

Expand Down

0 comments on commit 1b1745e

Please sign in to comment.