summaryrefslogtreecommitdiff
path: root/libguile/struct.c
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2003-02-24 11:26:46 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2003-02-24 11:26:46 +0000
commit53af82552221de939d0fe7de06e49ac6e18506a2 (patch)
tree90ec8af93efbb1a461f1606fe45b03b5c491ec2e /libguile/struct.c
parentea5c9285308f9aa0adedc0a9c75bf64abb4bf673 (diff)
downloadguile-53af82552221de939d0fe7de06e49ac6e18506a2.tar.gz
* struct.c (scm_struct_prehistory): Move scm_free_structs to
scm_before_mark_c_hook.
Diffstat (limited to 'libguile/struct.c')
-rw-r--r--libguile/struct.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libguile/struct.c b/libguile/struct.c
index d43872e47..eb2c15cbf 100644
--- a/libguile/struct.c
+++ b/libguile/struct.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2000,2001, 2003 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -797,7 +797,9 @@ void
scm_struct_prehistory ()
{
scm_i_structs_to_free = SCM_EOL;
- scm_c_hook_add (&scm_after_sweep_c_hook, scm_free_structs, 0, 0);
+ /* With the new lazy sweep GC, the point at which the entire heap is
+ swept is just before the mark phase. */
+ scm_c_hook_add (&scm_before_mark_c_hook, scm_free_structs, 0, 0);
}
void