1.1 --- a/src/share/vm/compiler/compileLog.cpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/compiler/compileLog.cpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -37,14 +37,14 @@ 1.4 CompileLog::CompileLog(const char* file, FILE* fp, intx thread_id) 1.5 : _context(_context_buffer, sizeof(_context_buffer)) 1.6 { 1.7 - initialize(new(ResourceObj::C_HEAP) fileStream(fp)); 1.8 + initialize(new(ResourceObj::C_HEAP, mtCompiler) fileStream(fp)); 1.9 _file = file; 1.10 _file_end = 0; 1.11 _thread_id = thread_id; 1.12 1.13 _identities_limit = 0; 1.14 _identities_capacity = 400; 1.15 - _identities = NEW_C_HEAP_ARRAY(char, _identities_capacity); 1.16 + _identities = NEW_C_HEAP_ARRAY(char, _identities_capacity, mtCompiler); 1.17 1.18 // link into the global list 1.19 { MutexLocker locker(CompileTaskAlloc_lock); 1.20 @@ -56,7 +56,7 @@ 1.21 CompileLog::~CompileLog() { 1.22 delete _out; 1.23 _out = NULL; 1.24 - FREE_C_HEAP_ARRAY(char, _identities); 1.25 + FREE_C_HEAP_ARRAY(char, _identities, mtCompiler); 1.26 } 1.27 1.28 1.29 @@ -109,7 +109,7 @@ 1.30 if (id >= _identities_capacity) { 1.31 int new_cap = _identities_capacity * 2; 1.32 if (new_cap <= id) new_cap = id + 100; 1.33 - _identities = REALLOC_C_HEAP_ARRAY(char, _identities, new_cap); 1.34 + _identities = REALLOC_C_HEAP_ARRAY(char, _identities, new_cap, mtCompiler); 1.35 _identities_capacity = new_cap; 1.36 } 1.37 while (id >= _identities_limit) {