This update adds precise garbage collection to the compiler and the runtime.
[IRC.git] / Robust / src / Runtime / mem.h
index a2212eddaf107f299273255dcd76910cb8d163b0..ed9270996522fa8b3547c600b525ce46624a2ca6 100644 (file)
@@ -9,8 +9,14 @@
 #define RUNMALLOC(x) GC_malloc(x)
 #define RUNFREE(x)
 #else
+#ifdef PRECISE_GC
+#include "garbage.h"
+#define RUNMALLOC(x) calloc(1,x)
+#define RUNFREE(x) free(x)
+#else
 #define FREEMALLOC(x) calloc(1,x)
 #define RUNMALLOC(x) calloc(1,x)
 #define RUNFREE(x) free(x)
 #endif
 #endif
+#endif