Code review request: 7188594 Print statistic collected by NMT with VM flag

Christian Thalinger christian.thalinger at
Wed Aug 29 14:09:58 PDT 2012

On Aug 29, 2012, at 12:17 PM, Zhengyu Gu < at> wrote:

> This is a simple RFE, that allows VM to dump collected native memory tracking data before exits.
> CR:
> Webrev:


+       tty->print("Native memory tracking is off due to ");
+       tty->print_cr(MemTracker::reason());

You can use one line to print that output:

+       tty->print_cr("Native memory tracking is off due to %s", MemTracker::reason());

But looking at MemTracker::reason the final output might look weird:

"Native memory tracking is off due to Native memory tracking is not enabled"

-- Chris

> Thanks,
> -Zhengyu

More information about the hotspot-runtime-dev mailing list