7200615: NPG: optimized VM build is broken
authorjmasa
Tue, 25 Sep 2012 07:05:55 -0700
changeset 13877 7bd7b85d5126
parent 13853 f61bae5ced43
child 13879 37bacd9a51ac
7200615: NPG: optimized VM build is broken Reviewed-by: kvn
hotspot/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp
hotspot/src/share/vm/memory/metaspace.cpp
--- a/hotspot/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Fri Sep 21 14:39:56 2012 -0700
+++ b/hotspot/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/hotspot/src/share/vm/memory/metaspace.cpp	Fri Sep 21 14:39:56 2012 -0700
+++ b/hotspot/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