--- old/src/hotspot/share/utilities/vmError.cpp 2019-07-04 14:44:54.338777917 +0200 +++ new/src/hotspot/share/utilities/vmError.cpp 2019-07-04 14:44:54.134779351 +0200 @@ -1527,6 +1527,12 @@ log.set_fd(-1); } + // Print out NMT statistics if this was desired. + if (PrintNMTStatistics) { + fdStream fds(fd_out); + MemTracker::final_report(&fds); + } + static bool skip_replay = ReplayCompiles; // Do not overwrite file during replay if (DumpReplayDataOnError && _thread && _thread->is_Compiler_thread() && !skip_replay) { skip_replay = true;