X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fgc-internal.h;h=c1e08346494437d48e8d3f7ee79c2cf0e0669ff5;hb=4bf2de6a2adff75459cf218c8bff67f6cdb91211;hp=276c9c3fb63ca8146b45ffbe884478c7e2607e17;hpb=6cbed049e2373d34fde8c96a3ce7b32b7034a7f2;p=sbcl.git diff --git a/src/runtime/gc-internal.h b/src/runtime/gc-internal.h index 276c9c3..c1e0834 100644 --- a/src/runtime/gc-internal.h +++ b/src/runtime/gc-internal.h @@ -19,7 +19,11 @@ #include /* 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 { \ @@ -97,7 +101,7 @@ gc_general_alloc(long nbytes, int page_type_flag, int quick_p) 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);