changeset 3662:5baec2e69518

7200615: NPG: optimized VM build is broken Reviewed-by: kvn
author jmasa
date Tue, 25 Sep 2012 07:05:55 -0700
parents 04ed664b7e30
children 7c2fd5948145
files src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp src/share/vm/memory/metaspace.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Fri Sep 21 14:39:56 2012 -0700
+++ b/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Tue Sep 25 07:05:55 2012 -0700
@@ -129,7 +129,7 @@
   buf.append_and_print_cr("]");
 }
 
-#ifdef ASSERT
+#ifndef PRODUCT
 
 template <class T>
 void WorkerDataArray<T>::reset() {
--- a/src/share/vm/memory/metaspace.cpp	Fri Sep 21 14:39:56 2012 -0700
+++ b/src/share/vm/memory/metaspace.cpp	Tue Sep 25 07:05:55 2012 -0700
@@ -2518,7 +2518,7 @@
                 " waste " SIZE_FORMAT, curr_total, used, free, capacity, waste);
 }
 
-#ifndef PRODUCT
+#ifdef ASSERT
 void SpaceManager::mangle_freed_chunks() {
   for (ChunkIndex index = SmallIndex;
        index < NumberOfFreeLists;
@@ -2536,7 +2536,7 @@
     }
   }
 }
-#endif // PRODUCT
+#endif // ASSERT
 
 
 // MetaspaceAux