mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
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:
parent
afd497eecc
commit
fb2076c572
4 changed files with 35 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue