--- a/src/hotspot/share/utilities/bitMap.cpp Tue Sep 10 14:52:53 2019 +0800
+++ b/src/hotspot/share/utilities/bitMap.cpp Tue Sep 10 09:24:05 2019 +0200
@@ -609,7 +609,7 @@
// then modifications in and to the left of the _bit_ being
// currently sampled will not be seen. Note also that the
// interval [leftOffset, rightOffset) is right open.
-bool BitMap::iterate(BitMapClosure* blk, idx_t leftOffset, idx_t rightOffset) {
+bool BitMap::iterate(BitMapClosure* blk, idx_t leftOffset, idx_t rightOffset) const {
verify_range(leftOffset, rightOffset);
idx_t startIndex = word_index(leftOffset);