Skip to content

Commit

Permalink
8299692: G1: Remove unused G1BlockOffsetTable::is_card_boundary
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett
  • Loading branch information
albertnetymk committed Jan 9, 2023
1 parent 7068457 commit 66db0bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/gc/g1/g1BlockOffsetTable.cpp
Expand Up @@ -49,12 +49,6 @@ G1BlockOffsetTable::G1BlockOffsetTable(MemRegion heap, G1RegionToSpaceMapper* st
p2i(bot_reserved.start()), bot_reserved.byte_size(), p2i(bot_reserved.end()));
}

bool G1BlockOffsetTable::is_card_boundary(HeapWord* p) const {
assert(p >= _reserved.start(), "just checking");
size_t delta = pointer_delta(p, _reserved.start());
return (delta & right_n_bits((int)BOTConstants::log_card_size_in_words())) == (size_t)NoBits;
}

#ifdef ASSERT
void G1BlockOffsetTable::check_index(size_t index, const char* msg) const {
assert((index) < (_reserved.word_size() >> BOTConstants::log_card_size_in_words()),
Expand Down
2 changes: 0 additions & 2 deletions src/hotspot/share/gc/g1/g1BlockOffsetTable.hpp
Expand Up @@ -71,8 +71,6 @@ class G1BlockOffsetTable: public CHeapObj<mtGC> {

inline void set_offset_array(size_t left, size_t right, u_char offset);

bool is_card_boundary(HeapWord* p) const;

void check_index(size_t index, const char* msg) const NOT_DEBUG_RETURN;

public:
Expand Down

1 comment on commit 66db0bb

@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.