7188594: Print statistic collected by NMT with VM flag

Print out statistics of collected NMT data if it is on at VM exits

Reviewed-by: kvn, coleenp, twisti
This commit is contained in:
Zhengyu Gu 2012-09-17 16:37:26 -04:00
parent afd497eecc
commit fb2076c572
4 changed files with 35 additions and 2 deletions

View file

@ -1978,6 +1978,12 @@ bool Arguments::check_vm_args_consistency() {
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;
}