diff -r b70281f5146e -r 57dd7b4ba338 test/hotspot/jtreg/runtime/NMT/PrintNMTStatistics.java --- a/test/hotspot/jtreg/runtime/NMT/PrintNMTStatistics.java Thu May 03 17:36:25 2018 -0700 +++ b/test/hotspot/jtreg/runtime/NMT/PrintNMTStatistics.java Tue Apr 24 18:06:32 2018 +0200 @@ -46,6 +46,10 @@ OutputAnalyzer output_detail = new OutputAnalyzer(pb.start()); output_detail.shouldContain("Virtual memory map:"); output_detail.shouldContain("Details:"); + + // PrintNMTStatistics also prints out metaspace statistics as a convenience. + output_detail.shouldContain("Metaspace:"); + output_detail.shouldHaveExitValue(0); // Make sure memory reserved for Module processing is recorded.