comparison 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
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
829 829
830 830
831 jvmtiError VM_RedefineClasses::load_new_class_versions(TRAPS) { 831 jvmtiError VM_RedefineClasses::load_new_class_versions(TRAPS) {
832 // For consistency allocate memory using os::malloc wrapper. 832 // For consistency allocate memory using os::malloc wrapper.
833 _scratch_classes = (instanceKlassHandle *) 833 _scratch_classes = (instanceKlassHandle *)
834 os::malloc(sizeof(instanceKlassHandle) * _class_count); 834 os::malloc(sizeof(instanceKlassHandle) * _class_count, mtInternal);
835 if (_scratch_classes == NULL) { 835 if (_scratch_classes == NULL) {
836 return JVMTI_ERROR_OUT_OF_MEMORY; 836 return JVMTI_ERROR_OUT_OF_MEMORY;
837 } 837 }
838 838
839 ResourceMark rm(THREAD); 839 ResourceMark rm(THREAD);