changeset 51491 | 187c84a5efe1 |
parent 49828 | ee3555b4a130 |
child 52485 | e5534cc91a10 |
--- 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 {