chiark / gitweb /
New configuration option sox_generation to choose between different
[disorder] / lib / mem.c
index 07c3495e2d656ea7df77a5325e97ae3b3e8edd9a..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) {
@@ -121,4 +124,3 @@ c-basic-offset:2
 comment-column:40
 End:
 */
-/* arch-tag:fceaf81fe79b2f4f87c9541774a2b8f2 */