--- 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