#include <genesis/simple-fun.h>
/* disabling gc assertions made no discernable difference to GC speed,
- * last I tried it - dan 2003.12.21 */
+ * last I tried it - dan 2003.12.21
+ *
+ * And it's unsafe to do so while things like gc_assert(0 ==
+ * thread_mutex_lock(&allocation_lock)) exist. - MG 2009-01-13
+ */
#if 1
# define gc_assert(ex) \
do { \
return gc_alloc_with_region(nbytes, page_type_flag, my_region, quick_p);
}
#else
-void *gc_general_alloc(long nbytes,int page_type_flag,int quick_p);
+extern void *gc_general_alloc(long nbytes,int page_type_flag,int quick_p);
#endif
extern long (*scavtab[256])(lispobj *where, lispobj object);