Expand heap size at startup time.
authorLudovic Courtes <ludovic.courtes@laas.fr>
Mon, 27 Nov 2006 00:15:53 +0000 (00:15 +0000)
committerLudovic Courtès <ludo@gnu.org>
Wed, 10 Sep 2008 20:19:22 +0000 (22:19 +0200)
* libguile/gc.c (scm_storage_prehistory): Invoke `GC_expand_hp ()'.

git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-49

libguile/gc.c

index afa8039..cfdc360 100644 (file)
@@ -681,6 +681,7 @@ scm_storage_prehistory ()
   GC_all_interior_pointers = 0;
 
   GC_INIT ();
+  GC_expand_hp (SCM_DEFAULT_INIT_HEAP_SIZE_2);
 
   /* 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