--- old/src/share/vm/utilities/bitMap.cpp 2016-03-09 15:15:56.863380456 +0100 +++ new/src/share/vm/utilities/bitMap.cpp 2016-03-09 15:15:56.715375452 +0100 @@ -30,14 +30,14 @@ #include "utilities/copy.hpp" BitMap::BitMap(bm_word_t* map, idx_t size_in_bits) : - _map(map), _size(size_in_bits), _map_allocator(false) + _map(map), _size(size_in_bits) { assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption."); } BitMap::BitMap(idx_t size_in_bits, bool in_resource_area) : - _map(NULL), _size(0), _map_allocator(false) + _map(NULL), _size(0) { assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption."); resize(size_in_bits, in_resource_area); @@ -54,7 +54,7 @@ Copy::disjoint_words((HeapWord*)old_map, (HeapWord*) _map, MIN2(old_size_in_words, new_size_in_words)); } else { - _map = _map_allocator.reallocate(new_size_in_words); + _map = ArrayAllocator::reallocate(old_map, old_size_in_words, new_size_in_words); } if (new_size_in_words > old_size_in_words) {