insist on GC_all_interior_pointers
authorrjk@greenend.org.uk <>
Sat, 7 Jul 2007 14:06:08 +0000 (15:06 +0100)
committerrjk@greenend.org.uk <>
Sat, 7 Jul 2007 14:06:08 +0000 (15:06 +0100)
.bzrignore
lib/mem.c

index a931754..5b9a524 100644 (file)
@@ -86,3 +86,4 @@ templates/Makefile
 .bzr.backup
 doc/disorder-speaker.8.html
 .gdb_history
+core
index b723a74..2b4848d 100644 (file)
--- a/lib/mem.c
+++ b/lib/mem.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <assert.h>
 
 #include "mem.h"
 #include "log.h"
@@ -53,8 +54,10 @@ void mem_init(int gc) {
     do_malloc_atomic = malloc;
     do_realloc = realloc;
     do_free = free;
-  } else
+  } else {
     GC_init();
+    assert(GC_all_interior_pointers);
+  }
 }
 
 void *xmalloc(size_t n) {