diff src/share/vm/prims/jvmtiRedefineClasses.cpp @ 6197:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents f7c4174b33ba
children 04ade88d9712
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiRedefineClasses.cpp	Wed Jun 27 15:23:36 2012 +0200
+++ b/src/share/vm/prims/jvmtiRedefineClasses.cpp	Thu Jun 28 17:03:16 2012 -0400
@@ -831,7 +831,7 @@
 jvmtiError VM_RedefineClasses::load_new_class_versions(TRAPS) {
   // For consistency allocate memory using os::malloc wrapper.
   _scratch_classes = (instanceKlassHandle *)
-    os::malloc(sizeof(instanceKlassHandle) * _class_count);
+    os::malloc(sizeof(instanceKlassHandle) * _class_count, mtInternal);
   if (_scratch_classes == NULL) {
     return JVMTI_ERROR_OUT_OF_MEMORY;
   }