mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6849716: BitMap - performance regression introduced with G1
Make verification code visible only in debug builds Reviewed-by: iveresov, ysr, johnc, apetrusenko, tonyp
This commit is contained in:
parent
10002fa2ff
commit
24f3527be2
5 changed files with 19 additions and 18 deletions
|
@ -93,10 +93,12 @@ class BitMap VALUE_OBJ_CLASS_SPEC {
|
|||
// The index of the first full word in a range.
|
||||
idx_t word_index_round_up(idx_t bit) const;
|
||||
|
||||
// Verification, statistics.
|
||||
void verify_index(idx_t index) const;
|
||||
void verify_range(idx_t beg_index, idx_t end_index) 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);
|
||||
|
@ -287,7 +289,6 @@ class BitMap VALUE_OBJ_CLASS_SPEC {
|
|||
#endif
|
||||
};
|
||||
|
||||
|
||||
// Convenience class wrapping BitMap which provides multiple bits per slot.
|
||||
class BitMap2D VALUE_OBJ_CLASS_SPEC {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue