< prev index next >

src/share/vm/utilities/bitMap.cpp

Print this page
rev 7793 : 8073315: Enable gcc -Wtype-limits and fix upcoming issues.

*** 31,41 **** BitMap::BitMap(bm_word_t* map, idx_t size_in_bits) : _map(map), _size(size_in_bits), _map_allocator(false) { assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption."); - assert(size_in_bits >= 0, "just checking"); } BitMap::BitMap(idx_t size_in_bits, bool in_resource_area) : _map(NULL), _size(0), _map_allocator(false) --- 31,40 ----
*** 43,53 **** assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption."); resize(size_in_bits, in_resource_area); } void BitMap::resize(idx_t size_in_bits, bool in_resource_area) { - assert(size_in_bits >= 0, "just checking"); idx_t old_size_in_words = size_in_words(); bm_word_t* old_map = map(); _size = size_in_bits; idx_t new_size_in_words = size_in_words(); --- 42,51 ----
< prev index next >