1.1 --- a/src/share/vm/utilities/xmlstream.cpp Fri Jun 29 17:12:15 2012 -0700 1.2 +++ b/src/share/vm/utilities/xmlstream.cpp Mon Jul 02 13:11:28 2012 -0400 1.3 @@ -43,7 +43,7 @@ 1.4 #ifdef ASSERT 1.5 _element_depth = 0; 1.6 int init_len = 100; 1.7 - char* init_buf = NEW_C_HEAP_ARRAY(char, init_len); 1.8 + char* init_buf = NEW_C_HEAP_ARRAY(char, init_len, mtInternal); 1.9 _element_close_stack_low = init_buf; 1.10 _element_close_stack_high = init_buf + init_len; 1.11 _element_close_stack_ptr = init_buf + init_len - 1; 1.12 @@ -58,7 +58,7 @@ 1.13 1.14 #ifdef ASSERT 1.15 xmlStream::~xmlStream() { 1.16 - FREE_C_HEAP_ARRAY(char, _element_close_stack_low); 1.17 + FREE_C_HEAP_ARRAY(char, _element_close_stack_low, mtInternal); 1.18 } 1.19 #endif 1.20 1.21 @@ -155,14 +155,14 @@ 1.22 int old_len = _element_close_stack_high - old_ptr; 1.23 int new_len = old_len * 2; 1.24 if (new_len < 100) new_len = 100; 1.25 - char* new_low = NEW_C_HEAP_ARRAY(char, new_len); 1.26 + char* new_low = NEW_C_HEAP_ARRAY(char, new_len, mtInternal); 1.27 char* new_high = new_low + new_len; 1.28 char* new_ptr = new_high - old_len; 1.29 memcpy(new_ptr, old_ptr, old_len); 1.30 _element_close_stack_high = new_high; 1.31 _element_close_stack_low = new_low; 1.32 _element_close_stack_ptr = new_ptr; 1.33 - FREE_C_HEAP_ARRAY(char, old_low); 1.34 + FREE_C_HEAP_ARRAY(char, old_low, mtInternal); 1.35 push_ptr = new_ptr - (tag_len+1); 1.36 } 1.37 assert(push_ptr >= _element_close_stack_low, "in range");