summaryrefslogtreecommitdiff
path: root/libguile/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/gc.c')
-rw-r--r--libguile/gc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libguile/gc.c b/libguile/gc.c
index 31c1eab5b..afa8039ab 100644
--- a/libguile/gc.c
+++ b/libguile/gc.c
@@ -678,8 +678,17 @@ scm_getenv_int (const char *var, int def)
void
scm_storage_prehistory ()
{
+ GC_all_interior_pointers = 0;
+
GC_INIT ();
+ /* We only need to register a displacement for those types for which the
+ higher bits of the type tag are used to store a pointer (that is, a
+ pointer to an 8-octet aligned region). For `scm_tc3_struct', this is
+ handled in `scm_alloc_struct ()'. */
+ GC_REGISTER_DISPLACEMENT (scm_tc3_cons);
+ GC_REGISTER_DISPLACEMENT (scm_tc3_closure);
+
/* Sanity check. */
if (!GC_is_visible (scm_sys_protects))
abort ();