X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fdynbind.c;h=9a64a0ab25a0666d2cf43e55b9851c71aa78b1ba;hb=d25e3478acccec70402ff32554669a982be8e281;hp=bb964bf6e295e8de25462d92150889b68d5c73bc;hpb=053874e1a563956dd86c5c122fbd1df37d7ceb1b;p=sbcl.git diff --git a/src/runtime/dynbind.c b/src/runtime/dynbind.c index bb964bf..9a64a0a 100644 --- a/src/runtime/dynbind.c +++ b/src/runtime/dynbind.c @@ -13,6 +13,9 @@ * files for more information. */ +#include +#include + #include "sbcl.h" #include "runtime.h" #include "globals.h" @@ -44,6 +47,7 @@ void bind_variable(lispobj symbol, lispobj value, void *th) if(!sym->tls_index) { lispobj *tls_index_lock= &((struct symbol *)native_pointer(TLS_INDEX_LOCK))->value; + FSHOW_SIGNAL((stderr, "entering dynbind tls alloc\n")); set_pseudo_atomic_atomic(th); get_spinlock(tls_index_lock,(long)th); if(!sym->tls_index) { @@ -55,6 +59,7 @@ void bind_variable(lispobj symbol, lispobj value, void *th) } } release_spinlock(tls_index_lock); + FSHOW_SIGNAL((stderr, "exiting dynbind tls alloc\n")); clear_pseudo_atomic_atomic(th); if (get_pseudo_atomic_interrupted(th)) do_pending_interrupt();