comparison src/share/vm/services/attachListener.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 4f25538b54c9
children da91efe96a93
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
318 out->print_cr("flag value must be a string"); 318 out->print_cr("flag value must be a string");
319 return JNI_ERR; 319 return JNI_ERR;
320 } 320 }
321 bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, ATTACH_ON_DEMAND); 321 bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, ATTACH_ON_DEMAND);
322 if (res) { 322 if (res) {
323 FREE_C_HEAP_ARRAY(char, value); 323 FREE_C_HEAP_ARRAY(char, value, mtInternal);
324 } else { 324 } else {
325 out->print_cr("setting flag %s failed", name); 325 out->print_cr("setting flag %s failed", name);
326 } 326 }
327 327
328 return res? JNI_OK : JNI_ERR; 328 return res? JNI_OK : JNI_ERR;