diff --git a/src/hotspot/share/gc/shared/cardTable.cpp b/src/hotspot/share/gc/shared/cardTable.cpp index cb74e68c881b8..7d9cd15997da7 100644 --- a/src/hotspot/share/gc/shared/cardTable.cpp +++ b/src/hotspot/share/gc/shared/cardTable.cpp @@ -363,13 +363,6 @@ void CardTable::clear_MemRegion(MemRegion mr) { memset(cur, clean_card, pointer_delta(last, cur, sizeof(CardValue))); } -void CardTable::clear(MemRegion mr) { - for (int i = 0; i < _cur_covered_regions; i++) { - MemRegion mri = mr.intersection(_covered[i]); - if (!mri.is_empty()) clear_MemRegion(mri); - } -} - uintx CardTable::ct_max_alignment_constraint() { // Calculate maximum alignment using GCCardSizeInBytes as card_size hasn't been set yet return GCCardSizeInBytes * os::vm_page_size(); diff --git a/src/hotspot/share/gc/shared/cardTable.hpp b/src/hotspot/share/gc/shared/cardTable.hpp index 04f7ad4f37931..7f27b9fdab6e9 100644 --- a/src/hotspot/share/gc/shared/cardTable.hpp +++ b/src/hotspot/share/gc/shared/cardTable.hpp @@ -156,7 +156,6 @@ class CardTable: public CHeapObj { } virtual void invalidate(MemRegion mr); - void clear(MemRegion mr); // Provide read-only access to the card table array. const CardValue* byte_for_const(const void* p) const {