avoid running GC when SCM_I_CURRENT_THREAD is unset
authorAndy Wingo <wingo@pobox.com>
Fri, 25 Mar 2011 14:35:20 +0000 (15:35 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 25 Mar 2011 14:35:20 +0000 (15:35 +0100)
commit7f22442b2af85ea9db89c84fbd3acb6a96ee13fd
tree8ad29874aee77178c819666c11211ababab5f64c
parent12c1d8616d8dfedcad65f34e3968f9544b629ae1
avoid running GC when SCM_I_CURRENT_THREAD is unset

* libguile/threads.c (guilify_self_1): Prevent finalizers from running
  before SCM_I_CURRENT_THREAD is set.
  (do_thread_exit_trampoline): Leave the thread in the registered state.
  (on_thread_exit): Always unregister the thread here.
libguile/threads.c