src/hotspot/share/utilities/bitMap.cpp
changeset 51491 187c84a5efe1
parent 49828 ee3555b4a130
child 52485 e5534cc91a10
equal deleted inserted replaced
51490:25048be67f4a 51491:187c84a5efe1
   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++) {