< prev index next >
src/share/vm/utilities/bitMap.hpp
Print this page
rev 10381 : 8151440: Move BitMap verfication inline functions out from bitMap.hpp
*** 98,110 ****
// The index of the first full word in a range.
idx_t word_index_round_up(idx_t bit) const;
// Verification.
! inline void verify_index(idx_t index) const NOT_DEBUG_RETURN;
! inline void verify_range(idx_t beg_index, idx_t end_index) const
! NOT_DEBUG_RETURN;
// Statistics.
static idx_t* _pop_count_table;
static void init_pop_count_table();
static idx_t num_set_bits(bm_word_t w);
--- 98,109 ----
// The index of the first full word in a range.
idx_t word_index_round_up(idx_t bit) const;
// Verification.
! void verify_index(idx_t index) const NOT_DEBUG_RETURN;
! void verify_range(idx_t beg_index, idx_t end_index) const NOT_DEBUG_RETURN;
// Statistics.
static idx_t* _pop_count_table;
static void init_pop_count_table();
static idx_t num_set_bits(bm_word_t w);
*** 304,343 ****
idx_t size_in_slots() {
// Round down
return _map.size() / _bits_per_slot;
}
! bool is_valid_index(idx_t slot_index, idx_t bit_within_slot_index) {
! verify_bit_within_slot_index(bit_within_slot_index);
! return (bit_index(slot_index, bit_within_slot_index) < size_in_bits());
! }
!
! bool at(idx_t slot_index, idx_t bit_within_slot_index) const {
! verify_bit_within_slot_index(bit_within_slot_index);
! return _map.at(bit_index(slot_index, bit_within_slot_index));
! }
!
! void set_bit(idx_t slot_index, idx_t bit_within_slot_index) {
! verify_bit_within_slot_index(bit_within_slot_index);
! _map.set_bit(bit_index(slot_index, bit_within_slot_index));
! }
!
! void clear_bit(idx_t slot_index, idx_t bit_within_slot_index) {
! verify_bit_within_slot_index(bit_within_slot_index);
! _map.clear_bit(bit_index(slot_index, bit_within_slot_index));
! }
!
! void at_put(idx_t slot_index, idx_t bit_within_slot_index, bool value) {
! verify_bit_within_slot_index(bit_within_slot_index);
! _map.at_put(bit_index(slot_index, bit_within_slot_index), value);
! }
!
! void at_put_grow(idx_t slot_index, idx_t bit_within_slot_index, bool value) {
! verify_bit_within_slot_index(bit_within_slot_index);
! _map.at_put_grow(bit_index(slot_index, bit_within_slot_index), value);
! }
!
void clear();
};
// Closure for iterating over BitMaps
--- 303,318 ----
idx_t size_in_slots() {
// Round down
return _map.size() / _bits_per_slot;
}
! bool is_valid_index(idx_t slot_index, idx_t bit_within_slot_index);
! bool at(idx_t slot_index, idx_t bit_within_slot_index) const;
! void set_bit(idx_t slot_index, idx_t bit_within_slot_index);
! void clear_bit(idx_t slot_index, idx_t bit_within_slot_index);
! void at_put(idx_t slot_index, idx_t bit_within_slot_index, bool value);
! void at_put_grow(idx_t slot_index, idx_t bit_within_slot_index, bool value);
void clear();
};
// Closure for iterating over BitMaps
< prev index next >