From b5108b4f3714451994af6378bf8ae9338a76940e Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Thu, 16 Mar 2023 13:15:46 +0000 Subject: [PATCH] 8303749: Serial: Use more strict card table API Reviewed-by: tschatzl, iwalulya --- src/hotspot/share/gc/serial/cardTableRS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/gc/serial/cardTableRS.cpp b/src/hotspot/share/gc/serial/cardTableRS.cpp index 6f36f2ee3f4..c7574f29e07 100644 --- a/src/hotspot/share/gc/serial/cardTableRS.cpp +++ b/src/hotspot/share/gc/serial/cardTableRS.cpp @@ -140,7 +140,7 @@ void CardTableRS::clear_into_younger(Generation* old_gen) { // below to avoid missing cards at the fringes. If clear() or // invalidate() are changed in the future, this code should // be revisited. 20040107.ysr - clear(old_gen->prev_used_region()); + clear_MemRegion(old_gen->prev_used_region()); } void CardTableRS::invalidate_or_clear(Generation* old_gen) { @@ -155,9 +155,9 @@ void CardTableRS::invalidate_or_clear(Generation* old_gen) { MemRegion used_mr = old_gen->used_region(); MemRegion to_be_cleared_mr = old_gen->prev_used_region().minus(used_mr); if (!to_be_cleared_mr.is_empty()) { - clear(to_be_cleared_mr); + clear_MemRegion(to_be_cleared_mr); } - invalidate(used_mr); + dirty_MemRegion(used_mr); }