8299692: G1: Remove unused G1BlockOffsetTable::is_card_boundary
Reviewed-by: kbarrett
This commit is contained in:
parent
7068457436
commit
66db0bb6a1
@ -49,12 +49,6 @@ G1BlockOffsetTable::G1BlockOffsetTable(MemRegion heap, G1RegionToSpaceMapper* st
|
|||||||
p2i(bot_reserved.start()), bot_reserved.byte_size(), p2i(bot_reserved.end()));
|
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
|
#ifdef ASSERT
|
||||||
void G1BlockOffsetTable::check_index(size_t index, const char* msg) const {
|
void G1BlockOffsetTable::check_index(size_t index, const char* msg) const {
|
||||||
assert((index) < (_reserved.word_size() >> BOTConstants::log_card_size_in_words()),
|
assert((index) < (_reserved.word_size() >> BOTConstants::log_card_size_in_words()),
|
||||||
|
@ -71,8 +71,6 @@ private:
|
|||||||
|
|
||||||
inline void set_offset_array(size_t left, size_t right, u_char offset);
|
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;
|
void check_index(size_t index, const char* msg) const NOT_DEBUG_RETURN;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user