diff options
-rw-r--r-- | libguile/gc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/gc.c b/libguile/gc.c index 7816801e1..fd37046af 100644 --- a/libguile/gc.c +++ b/libguile/gc.c @@ -234,6 +234,10 @@ scm_t_c_hook scm_after_gc_c_hook; static void run_before_gc_c_hook (void) { + if (!SCM_I_CURRENT_THREAD) + /* GC while a thread is spinning up; punt. */ + return; + scm_c_hook_run (&scm_before_gc_c_hook, NULL); } |