< prev index next >

src/share/vm/utilities/bitMap.hpp

Print this page
rev 10546 : [mq]: 8077144-concurrent-mark-thread-init-fix

*** 133,148 **** --- 133,155 ---- // If "in_resource_area" is false, frees the current map. // (Note that this assumes that all calls to "resize" on the same BitMap // use the same value for "in_resource_area".) void resize(idx_t size_in_bits, bool in_resource_area = true); + // Pretouch the entire range of memory this BitMap covers. + void pretouch(); + // Accessing idx_t size() const { return _size; } idx_t size_in_words() const { return word_index(size() + BitsPerWord - 1); } + static idx_t size_in_words(size_t size_in_bits) { + return word_index(size_in_bits + BitsPerWord - 1); + } + bool at(idx_t index) const { verify_index(index); return (*word_addr(index) & bit_mask(index)) != 0; }
< prev index next >