mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8005936: PrintNMTStatistics doesn't work for normal JVM exit
Moved NMT shutdown code to JVM exit handler to ensure NMT statistics is printed when PrintNMTStatistics is enabled Reviewed-by: acorn, dholmes, coleenp
This commit is contained in:
parent
f4da82981d
commit
93d2366337
2 changed files with 4 additions and 4 deletions
|
@ -4011,10 +4011,6 @@ bool Threads::destroy_vm() {
|
|||
Mutex::_as_suspend_equivalent_flag);
|
||||
}
|
||||
|
||||
// Shutdown NMT before exit. Otherwise,
|
||||
// it will run into trouble when system destroys static variables.
|
||||
MemTracker::shutdown(MemTracker::NMT_normal);
|
||||
|
||||
// Hang forever on exit if we are reporting an error.
|
||||
if (ShowMessageBoxOnError && is_error_reported()) {
|
||||
os::infinite_sleep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue