@@ -182,9 +182,9 @@ static double fragmentation_limit(ZGenerationId generation) {
182
182
}
183
183
}
184
184
185
- void ZGeneration::select_relocation_set (ZGenerationId generation, bool promote_all) {
185
+ void ZGeneration::select_relocation_set (bool promote_all) {
186
186
// Register relocatable pages with selector
187
- ZRelocationSetSelector selector (fragmentation_limit (generation ));
187
+ ZRelocationSetSelector selector (fragmentation_limit (_id ));
188
188
{
189
189
ZGenerationPagesIterator pt_iter (_page_table, _id, _page_allocator);
190
190
for (ZPage* page; pt_iter.next (&page);) {
@@ -238,7 +238,7 @@ void ZGeneration::select_relocation_set(ZGenerationId generation, bool promote_a
238
238
// Selecting tenuring threshold must be done after select
239
239
// which produces the liveness data, but before install,
240
240
// which consumes the tenuring threshold.
241
- if (generation == ZGenerationId::young ) {
241
+ if (is_young () ) {
242
242
ZGeneration::young ()->select_tenuring_threshold (selector.stats (), promote_all);
243
243
}
244
244
@@ -811,7 +811,7 @@ uint ZGenerationYoung::compute_tenuring_threshold(ZRelocationSetSelectorStats st
811
811
void ZGenerationYoung::concurrent_select_relocation_set () {
812
812
ZStatTimerYoung timer (ZPhaseConcurrentSelectRelocationSetYoung);
813
813
const bool promote_all = type () == ZYoungType::major_full_preclean;
814
- select_relocation_set (_id, promote_all);
814
+ select_relocation_set (promote_all);
815
815
}
816
816
817
817
class VM_ZRelocateStartYoung : public VM_ZYoungOperation {
@@ -1153,7 +1153,7 @@ void ZGenerationOld::pause_verify() {
1153
1153
1154
1154
void ZGenerationOld::concurrent_select_relocation_set () {
1155
1155
ZStatTimerOld timer (ZPhaseConcurrentSelectRelocationSetOld);
1156
- select_relocation_set (_id, false /* promote_all */ );
1156
+ select_relocation_set (false /* promote_all */ );
1157
1157
}
1158
1158
1159
1159
class VM_ZRelocateStartOld : public VM_ZOperation {
0 commit comments