(scm_igc): put scm_gc_running-- before running hooks.
authorHan-Wen Nienhuys <hanwen@lilypond.org>
Thu, 7 Oct 2004 23:42:41 +0000 (23:42 +0000)
committerHan-Wen Nienhuys <hanwen@lilypond.org>
Thu, 7 Oct 2004 23:42:41 +0000 (23:42 +0000)
libguile/gc.c

index 6c87857..c1d489c 100644 (file)
@@ -606,8 +606,8 @@ scm_igc (const char *what)
   /*
     See above.
    */
-  scm_c_hook_run (&scm_after_gc_c_hook, 0);
   --scm_gc_running_p;
+  scm_c_hook_run (&scm_after_gc_c_hook, 0);
   scm_rec_mutex_unlock (&scm_i_sweep_mutex);
 
   /*