1.1 --- a/src/share/vm/prims/jvmtiEnvBase.cpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/prims/jvmtiEnvBase.cpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -381,7 +381,7 @@ 1.4 _native_method_prefixes = NULL; 1.5 } else { 1.6 // there are prefixes, allocate an array to hold them, and fill it 1.7 - char** new_prefixes = (char**)os::malloc((prefix_count) * sizeof(char*)); 1.8 + char** new_prefixes = (char**)os::malloc((prefix_count) * sizeof(char*), mtInternal); 1.9 if (new_prefixes == NULL) { 1.10 return JVMTI_ERROR_OUT_OF_MEMORY; 1.11 } 1.12 @@ -1150,7 +1150,7 @@ 1.13 1.14 ResourceTracker::ResourceTracker(JvmtiEnv* env) { 1.15 _env = env; 1.16 - _allocations = new (ResourceObj::C_HEAP) GrowableArray<unsigned char*>(20, true); 1.17 + _allocations = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<unsigned char*>(20, true); 1.18 _failed = false; 1.19 } 1.20 ResourceTracker::~ResourceTracker() {