equal
deleted
inserted
replaced
670 void BitMap::print_on_error(outputStream* st, const char* prefix) const { |
670 void BitMap::print_on_error(outputStream* st, const char* prefix) const { |
671 st->print_cr("%s[" PTR_FORMAT ", " PTR_FORMAT ")", |
671 st->print_cr("%s[" PTR_FORMAT ", " PTR_FORMAT ")", |
672 prefix, p2i(map()), p2i((char*)map() + (size() >> LogBitsPerByte))); |
672 prefix, p2i(map()), p2i((char*)map() + (size() >> LogBitsPerByte))); |
673 } |
673 } |
674 |
674 |
|
675 void BitMap::write_to(bm_word_t* buffer, size_t buffer_size_in_bytes) const { |
|
676 assert(buffer_size_in_bytes == size_in_bytes(), "must be"); |
|
677 memcpy(buffer, _map, size_in_bytes()); |
|
678 } |
|
679 |
675 #ifndef PRODUCT |
680 #ifndef PRODUCT |
676 |
681 |
677 void BitMap::print_on(outputStream* st) const { |
682 void BitMap::print_on(outputStream* st) const { |
678 tty->print("Bitmap(" SIZE_FORMAT "):", size()); |
683 tty->print("Bitmap(" SIZE_FORMAT "):", size()); |
679 for (idx_t index = 0; index < size(); index++) { |
684 for (idx_t index = 0; index < size(); index++) { |