From ca94287d2b133f220f38ab321562a14f0db04a56 Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Wed, 22 Mar 2023 10:11:55 +0000 Subject: [PATCH] 8304144: G1: Remove unnecessary is_survivor check in G1ClearCardTableTask Reviewed-by: tschatzl, ysr --- src/hotspot/share/gc/g1/g1RemSet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hotspot/share/gc/g1/g1RemSet.cpp b/src/hotspot/share/gc/g1/g1RemSet.cpp index 1554f52ec58..7dba70adf41 100644 --- a/src/hotspot/share/gc/g1/g1RemSet.cpp +++ b/src/hotspot/share/gc/g1/g1RemSet.cpp @@ -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(); } } }