Imported and merged Boehm GC 7.0
[cacao.git] / src / mm / boehm-gc / MacOS.c
index 23a428b9b94f23a46ed96beb86169e4a9e68ab95..9fc579f9dafe2f2055fc639c5396487fb77a22a5 100644 (file)
@@ -130,10 +130,12 @@ void GC_MacFreeTemporaryMemory()
        }
        theTemporaryMemory = NULL;
 
-#       if !defined(SILENT) && !defined(SHARED_LIBRARY_BUILD)
-          fprintf(stdout, "[total memory used:  %ld bytes.]\n",
+#       if !defined(SHARED_LIBRARY_BUILD)
+         if (GC_print_stats) {
+            fprintf(stdout, "[total memory used:  %ld bytes.]\n",
                   totalMemoryUsed);
-          fprintf(stdout, "[total collections:  %ld.]\n", GC_gc_no);
+            fprintf(stdout, "[total collections:  %ld.]\n", GC_gc_no);
+         }
 #       endif
     }
 }