diff -r 25048be67f4a -r 187c84a5efe1 src/hotspot/share/utilities/bitMap.cpp --- a/src/hotspot/share/utilities/bitMap.cpp Wed Aug 22 16:06:51 2018 +0100 +++ b/src/hotspot/share/utilities/bitMap.cpp Tue Aug 14 09:59:37 2018 -0700 @@ -672,6 +672,11 @@ prefix, p2i(map()), p2i((char*)map() + (size() >> LogBitsPerByte))); } +void BitMap::write_to(bm_word_t* buffer, size_t buffer_size_in_bytes) const { + assert(buffer_size_in_bytes == size_in_bytes(), "must be"); + memcpy(buffer, _map, size_in_bytes()); +} + #ifndef PRODUCT void BitMap::print_on(outputStream* st) const {