8304411: Remove unused CardTable::clear

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-03-20 11:15:29 +00:00
parent 450567031e
commit 652bda0af8
2 changed files with 0 additions and 8 deletions

View File

@ -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();

View File

@ -156,7 +156,6 @@ public:
}
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 {