8304144: G1: Remove unnecessary is_survivor check in G1ClearCardTableTask

Reviewed-by: tschatzl, ysr
This commit is contained in:
Albert Mingkun Yang 2023-03-22 10:11:55 +00:00
parent eda0065107
commit ca94287d2b

View File

@ -253,9 +253,7 @@ private:
for (uint i = next; i < max; i++) {
HeapRegion* r = _g1h->region_at(_regions->at(i));
if (!r->is_survivor()) {
r->clear_cardtable();
}
r->clear_cardtable();
}
}
}