@@ -182,9 +182,9 @@ static double fragmentation_limit(ZGenerationId generation) {
182182 }
183183}
184184
185- void ZGeneration::select_relocation_set (ZGenerationId generation, bool promote_all) {
185+ void ZGeneration::select_relocation_set (bool promote_all) {
186186 // Register relocatable pages with selector
187- ZRelocationSetSelector selector (fragmentation_limit (generation ));
187+ ZRelocationSetSelector selector (fragmentation_limit (_id ));
188188 {
189189 ZGenerationPagesIterator pt_iter (_page_table, _id, _page_allocator);
190190 for (ZPage* page; pt_iter.next (&page);) {
@@ -238,7 +238,7 @@ void ZGeneration::select_relocation_set(ZGenerationId generation, bool promote_a
238238 // Selecting tenuring threshold must be done after select
239239 // which produces the liveness data, but before install,
240240 // which consumes the tenuring threshold.
241- if (generation == ZGenerationId::young ) {
241+ if (is_young () ) {
242242 ZGeneration::young ()->select_tenuring_threshold (selector.stats (), promote_all);
243243 }
244244
@@ -811,7 +811,7 @@ uint ZGenerationYoung::compute_tenuring_threshold(ZRelocationSetSelectorStats st
811811void ZGenerationYoung::concurrent_select_relocation_set () {
812812 ZStatTimerYoung timer (ZPhaseConcurrentSelectRelocationSetYoung);
813813 const bool promote_all = type () == ZYoungType::major_full_preclean;
814- select_relocation_set (_id, promote_all);
814+ select_relocation_set (promote_all);
815815}
816816
817817class VM_ZRelocateStartYoung : public VM_ZYoungOperation {
@@ -1153,7 +1153,7 @@ void ZGenerationOld::pause_verify() {
11531153
11541154void ZGenerationOld::concurrent_select_relocation_set () {
11551155 ZStatTimerOld timer (ZPhaseConcurrentSelectRelocationSetOld);
1156- select_relocation_set (_id, false /* promote_all */ );
1156+ select_relocation_set (false /* promote_all */ );
11571157}
11581158
11591159class VM_ZRelocateStartOld : public VM_ZOperation {
0 commit comments