boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / MacOS.c
index 23a428b9b94f23a46ed96beb86169e4a9e68ab95..b56bea782b9b2238f3f0dc7d6e4e2bb98b810ae7 100644 (file)
@@ -15,8 +15,6 @@ unloading shared library.
  */
 /* Boehm, February 15, 1996 2:55 pm PST */
 
-#include "config.h"
-
 #include <Resources.h>
 #include <Memory.h>
 #include <LowMem.h>
@@ -130,10 +128,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
     }
 }