Code review request: 7188594 Print statistic collected by NMT with VM flag
Christian Thalinger
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/
src/share/vm/runtime/java.cpp:
+ 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