--- a/test/hotspot/gtest/runtime/test_committed_virtualmemory.cpp Sat May 05 12:38:15 2018 -0400
+++ b/test/hotspot/gtest/runtime/test_committed_virtualmemory.cpp Sat May 05 18:55:31 2018 +0200
@@ -26,6 +26,8 @@
// Included early because the NMT flags don't include it.
#include "utilities/macros.hpp"
+#if INCLUDE_NMT
+
#include "runtime/thread.hpp"
#include "services/memTracker.hpp"
#include "services/virtualMemoryTracker.hpp"
@@ -208,3 +210,5 @@
CommittedVirtualMemoryTest::test_committed_region();
CommittedVirtualMemoryTest::test_partial_region();
}
+
+#endif // INCLUDE_NMT