re-enable the after-gc-hook
authorAndy Wingo <wingo@pobox.com>
Thu, 24 Feb 2011 15:30:08 +0000 (16:30 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 24 Feb 2011 15:30:08 +0000 (16:30 +0100)
commitec7f624d652eaf6e4cf06253101b4a986e1b9e8e
treee9f3757df3ecba84b34b5a4fdc5cc77d6ca91680
parent574b7be0ba5dbbecfacf172ed81a5f22d1d5566e
re-enable the after-gc-hook

* libguile/gc.c (scm_gc): No need to take a mutex here.  Don't run the
  hook, the hook will run itself.
  (scm_c_register_gc_callback): New private helper, registers a callback
  the next time GC happens.
  (system_gc_callback): Guile's internal callback that runs
  scm_after_gc_c_hook, which itself queues a call to the after-gc-hook.
  (scm_storage_prehistory): Queue up a call to system_gc_callback.
libguile/gc.c