diff --git a/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp b/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp index ae8439ad25f8760e1986f1ac89a4eb63f9249ac8..7a102cf43d73f979ce6ddc1cb66d75813df9db01 100644 --- a/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp +++ b/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp @@ -129,7 +129,7 @@ void WorkerDataArray::print(int level, const char* title) { buf.append_and_print_cr("]"); } -#ifdef ASSERT +#ifndef PRODUCT template void WorkerDataArray::reset() { diff --git a/src/share/vm/memory/metaspace.cpp b/src/share/vm/memory/metaspace.cpp index 23aabded25b48f54b5a3cec5e5ef28a8ce0c8a0a..0396eef2def134e39f634e6e95218fa2347994b4 100644 --- a/src/share/vm/memory/metaspace.cpp +++ b/src/share/vm/memory/metaspace.cpp @@ -2518,7 +2518,7 @@ void SpaceManager::dump(outputStream* const out) const { " 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 @@ void SpaceManager::mangle_freed_chunks() { } } } -#endif // PRODUCT +#endif // ASSERT // MetaspaceAux