chiark / gitweb /
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 a931754dce3cd8354afd80579b5108be0f5f4f8a..5b9a5249da419ba939469fda7e4bbd4602bf61f0 100644 (file)
@@ -86,3 +86,4 @@ templates/Makefile
 .bzr.backup
 doc/disorder-speaker.8.html
 .gdb_history
+core
index b723a742b81d95d54c7aee2085916c0a4bd8579f..2b4848d205738b525f58e5f1102a1b4583590c1e 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) {