Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.cpp @ 6770:9a86ddfc6c8f
7188594: Print statistic collected by NMT with VM flag
Summary: Print out statistics of collected NMT data if it is on at VM exits
Reviewed-by: kvn, coleenp, twisti
author | zgu |
---|---|
date | Mon, 17 Sep 2012 16:37:26 -0400 |
parents | 11fb740ce98f |
children | b86575d092a2 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Mon Sep 17 10:20:04 2012 -0400 +++ b/src/share/vm/runtime/arguments.cpp Mon Sep 17 16:37:26 2012 -0400 @@ -1978,6 +1978,12 @@ status = status && verify_min_value(ClassMetaspaceSize, 1*M, "ClassMetaspaceSize"); + // check native memory tracking flags + if (PrintNMTStatistics && MemTracker::tracking_level() == MemTracker::NMT_off) { + warning("PrintNMTStatistics is disabled, because native memory tracking is not enabled"); + PrintNMTStatistics = false; + } + return status; }