8183228: Fix optimized build after JDK-8170933
authorstuefe
Thu, 29 Jun 2017 12:35:30 +0200
changeset 46602 f63ae85597f1
parent 46589 f1c04490ded1
child 46603 ec4b3e8ef95b
8183228: Fix optimized build after JDK-8170933 Reviewed-by: mgerdin, coleenp
hotspot/src/share/vm/memory/metaspace.cpp
--- a/hotspot/src/share/vm/memory/metaspace.cpp	Wed Jun 28 19:12:58 2017 -0400
+++ b/hotspot/src/share/vm/memory/metaspace.cpp	Thu Jun 29 12:35:30 2017 +0200
@@ -4106,6 +4106,10 @@
   }
 }
 
+#endif // !PRODUCT
+
+#ifdef ASSERT
+
 // ChunkManagerReturnTest stresses taking/returning chunks from the ChunkManager. It takes and
 // returns chunks from/to the ChunkManager while keeping track of the expected ChunkManager
 // content.
@@ -4415,4 +4419,4 @@
   SpaceManagerTest::test_adjust_initial_chunk_size();
 }
 
-#endif
+#endif // ASSERT