test/hotspot/gtest/runtime/test_committed_virtualmemory.cpp
changeset 50021 b8308d6356e7
parent 49968 33a76b934213
child 50535 e1b3def12624
--- 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