Skip to content

Commit

Permalink
8304411: Remove unused CardTable::clear
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Mar 20, 2023
1 parent 4505670 commit 652bda0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/hotspot/share/gc/shared/cardTable.cpp
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/gc/shared/cardTable.hpp
Expand Up @@ -156,7 +156,6 @@ class CardTable: public CHeapObj<mtGC> {
}

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 {
Expand Down

1 comment on commit 652bda0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.