1.1 --- a/src/share/vm/utilities/bitMap.cpp Fri Jun 29 17:12:15 2012 -0700 1.2 +++ b/src/share/vm/utilities/bitMap.cpp Mon Jul 02 13:11:28 2012 -0400 1.3 @@ -65,8 +65,8 @@ 1.4 if (in_resource_area) { 1.5 _map = NEW_RESOURCE_ARRAY(bm_word_t, new_size_in_words); 1.6 } else { 1.7 - if (old_map != NULL) FREE_C_HEAP_ARRAY(bm_word_t, _map); 1.8 - _map = NEW_C_HEAP_ARRAY(bm_word_t, new_size_in_words); 1.9 + if (old_map != NULL) FREE_C_HEAP_ARRAY(bm_word_t, _map, mtInternal); 1.10 + _map = NEW_C_HEAP_ARRAY(bm_word_t, new_size_in_words, mtInternal); 1.11 } 1.12 Copy::disjoint_words((HeapWord*)old_map, (HeapWord*) _map, 1.13 MIN2(old_size_in_words, new_size_in_words)); 1.14 @@ -469,7 +469,7 @@ 1.15 1.16 void BitMap::init_pop_count_table() { 1.17 if (_pop_count_table == NULL) { 1.18 - BitMap::idx_t *table = NEW_C_HEAP_ARRAY(idx_t, 256); 1.19 + BitMap::idx_t *table = NEW_C_HEAP_ARRAY(idx_t, 256, mtInternal); 1.20 for (uint i = 0; i < 256; i++) { 1.21 table[i] = num_set_bits(i); 1.22 } 1.23 @@ -479,7 +479,7 @@ 1.24 (intptr_t) NULL_WORD); 1.25 if (res != NULL_WORD) { 1.26 guarantee( _pop_count_table == (void*) res, "invariant" ); 1.27 - FREE_C_HEAP_ARRAY(bm_word_t, table); 1.28 + FREE_C_HEAP_ARRAY(bm_word_t, table, mtInternal); 1.29 } 1.30 } 1.31 }