diff -r 419385282044 -r afb974a04396 hotspot/src/share/vm/runtime/thread.cpp --- a/hotspot/src/share/vm/runtime/thread.cpp Fri Nov 28 16:33:57 2014 +0100 +++ b/hotspot/src/share/vm/runtime/thread.cpp Mon Dec 01 12:16:15 2014 -0500 @@ -171,9 +171,9 @@ void Thread::operator delete(void* p) { if (UseBiasedLocking) { void* real_malloc_addr = ((Thread*) p)->_real_malloc_address; - FreeHeap(real_malloc_addr, mtThread); + FreeHeap(real_malloc_addr); } else { - FreeHeap(p, mtThread); + FreeHeap(p); } } @@ -1146,7 +1146,7 @@ NamedThread::~NamedThread() { if (_name != NULL) { - FREE_C_HEAP_ARRAY(char, _name, mtThread); + FREE_C_HEAP_ARRAY(char, _name); _name = NULL; } } @@ -2998,7 +2998,7 @@ void JavaThread::popframe_free_preserved_args() { assert(_popframe_preserved_args != NULL, "should not free PopFrame preserved arguments twice"); - FREE_C_HEAP_ARRAY(char, (char*) _popframe_preserved_args, mtThread); + FREE_C_HEAP_ARRAY(char, (char*) _popframe_preserved_args); _popframe_preserved_args = NULL; _popframe_preserved_args_size = 0; } @@ -3608,7 +3608,7 @@ jio_snprintf(buf, len, "%s%s%s%s", msg, name, sub_msg, ebuf); // If we can't find the agent, exit. vm_exit_during_initialization(buf, NULL); - FREE_C_HEAP_ARRAY(char, buf, mtThread); + FREE_C_HEAP_ARRAY(char, buf); } } else { // Try to load the agent from the standard dll directory @@ -3628,7 +3628,7 @@ jio_snprintf(buf, len, "%s%s%s%s", msg, name, sub_msg, ebuf); // If we can't find the agent, exit. vm_exit_during_initialization(buf, NULL); - FREE_C_HEAP_ARRAY(char, buf, mtThread); + FREE_C_HEAP_ARRAY(char, buf); } } }