--- a/hotspot/src/share/vm/gc/g1/g1CardLiveData.cpp Fri Apr 22 14:30:58 2016 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1CardLiveData.cpp Fri Apr 22 13:16:57 2016 +0000
@@ -60,7 +60,7 @@
}
void G1CardLiveData::free_large_bitmap(bm_word_t* bitmap, size_t size_in_bits) {
- MmapArrayAllocator<bm_word_t, mtGC>::free(bitmap, size_in_bits / BitsPerWord);
+ MmapArrayAllocator<bm_word_t, mtGC>::free(bitmap, BitMap::calc_size_in_words(size_in_bits));
}
void G1CardLiveData::initialize(size_t max_capacity, uint num_max_regions) {