X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fdynbind.c;h=9a64a0ab25a0666d2cf43e55b9851c71aa78b1ba;hb=9abfd1a2b22862570c15ffa5129b1196d0480290;hp=1c84e5bbfe000c65b203715842b7ab8dd4022aa6;hpb=777ed58b46a76b4d260a1aede699117323105d2e;p=sbcl.git diff --git a/src/runtime/dynbind.c b/src/runtime/dynbind.c index 1c84e5b..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,7 +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; - clear_pseudo_atomic_interrupted(th); + FSHOW_SIGNAL((stderr, "entering dynbind tls alloc\n")); set_pseudo_atomic_atomic(th); get_spinlock(tls_index_lock,(long)th); if(!sym->tls_index) { @@ -56,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();