Code review request: 7188594 Print statistic collected by NMT with VM flag
christian.thalinger at oracle.com
Wed Aug 29 14:09:58 PDT 2012
On Aug 29, 2012, at 12:17 PM, Zhengyu Gu <zhengyu.gu at oracle.com> wrote:
> This is a simple RFE, that allows VM to dump collected native memory tracking data before exits.
> CR: http://bugs.sun.com/view_bug.do?bug_id=7188594
> Webrev: http://cr.openjdk.java.net/~zgu/7188594/webrev.00/
+ tty->print("Native memory tracking is off due to ");
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"
More information about the hotspot-runtime-dev