src/share/vm/utilities/bitMap.hpp

changeset 9637
eef07cd490d4
parent 6876
710a3c8b516e
parent 9616
faa71d8b8ab5
     1.1 --- a/src/share/vm/utilities/bitMap.hpp	Wed Jul 03 20:04:13 2019 +0800
     1.2 +++ b/src/share/vm/utilities/bitMap.hpp	Wed Jul 03 20:42:37 2019 +0800
     1.3 @@ -56,6 +56,10 @@
     1.4    // the bitmap appropriately if needed using factor-of-two expansion.
     1.5    void at_put_grow(idx_t index, bool value);
     1.6  
     1.7 +  // Threshold for performing small range operation, even when large range
     1.8 +  // operation was requested. Measured in words.
     1.9 +  static const size_t small_range_words = 32;
    1.10 +
    1.11   protected:
    1.12    // Return the position of bit within the word that contains it (e.g., if
    1.13    // bitmap words are 32 bits, return a number 0 <= n <= 31).
    1.14 @@ -97,6 +101,8 @@
    1.15    void      set_large_range_of_words   (idx_t beg, idx_t end);
    1.16    void      clear_large_range_of_words (idx_t beg, idx_t end);
    1.17  
    1.18 +  static bool is_small_range_of_words(idx_t beg_full_word, idx_t end_full_word);
    1.19 +
    1.20    // The index of the first full word in a range.
    1.21    idx_t word_index_round_up(idx_t bit) const;
    1.22  

mercurial