Skip to content
Permalink
Browse files
8275714: G1: remove unused variable in G1Policy::transfer_survivors_t…
…o_cset

Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Oct 21, 2021
1 parent af14650 commit bef8cf1ba14d3846977942844f341f5c5a1f44c4
Showing 1 changed file with 0 additions and 3 deletions.
@@ -1501,7 +1501,6 @@ void G1Policy::update_survival_estimates_for_next_collection() {
void G1Policy::transfer_survivors_to_cset(const G1SurvivorRegions* survivors) {
start_adding_survivor_regions();

HeapRegion* last = NULL;
for (GrowableArrayIterator<HeapRegion*> it = survivors->regions()->begin();
it != survivors->regions()->end();
++it) {
@@ -1512,8 +1511,6 @@ void G1Policy::transfer_survivors_to_cset(const G1SurvivorRegions* survivors) {
// the incremental collection set for the next evacuation
// pause.
_collection_set->add_survivor_regions(curr);

last = curr;
}
stop_adding_survivor_regions();

1 comment on commit bef8cf1

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on bef8cf1 Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.