* Fixed: gc_async must be protected from gc.
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>
Wed, 6 Dec 2000 17:11:46 +0000 (17:11 +0000)
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>
Wed, 6 Dec 2000 17:11:46 +0000 (17:11 +0000)
libguile/ChangeLog
libguile/gc.c

index c006042..d1fbc14 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-06  Dirk Herrmann  <D.Herrmann@tu-bs.de>
+
+       * gc.c (scm_init_gc):  gc_async must be protected from gc.  I
+       wonder why we never ran into problems up to now...
+
 2000-12-06  Dirk Herrmann  <D.Herrmann@tu-bs.de>
 
        * gc.c (scm_init_gc):  Don't create a binding for %gc-thunk.
index 30fd43f..96011f1 100644 (file)
@@ -2582,6 +2582,7 @@ scm_init_gc ()
 #endif  /* SCM_DEBUG_DEPRECATED == 0 */
   after_gc_thunk = scm_make_subr_opt ("%gc-thunk", scm_tc7_subr_0, gc_async_thunk, 0);
   gc_async = scm_system_async (after_gc_thunk);
+  scm_permanent_object (gc_async);
 
   scm_c_hook_add (&scm_after_gc_c_hook, mark_gc_async, NULL, 0);