]> code.delx.au - gnu-emacs/commitdiff
(r_alloc_init): Set __malloc_extra_blocks.
authorRichard M. Stallman <rms@gnu.org>
Sun, 19 Feb 1995 19:12:17 +0000 (19:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 19 Feb 1995 19:12:17 +0000 (19:12 +0000)
src/ralloc.c

index d9fb639379b0ada7ef7296354a11dd17318108ea..d5248f2cb0ad339d6abbfc6a2dbe7b631b90804b 100644 (file)
@@ -56,6 +56,8 @@ typedef unsigned long SIZE;
    overlap.  */
 extern void safe_bcopy ();
 
+extern int __malloc_extra_blocks;
+
 #else /* not emacs */
 
 #include <stddef.h>
@@ -1002,6 +1004,10 @@ r_alloc_init ()
   page_size = PAGE;
   extra_bytes = ROUNDUP (50000);
 
+  /* Give GNU malloc's morecore some hysteresis
+     so that we move all the relocatable blocks much less often.  */
+  __malloc_extra_blocks = 64;
+
   first_heap->end = (POINTER) ROUNDUP (first_heap->start);
 
   /* The extra call to real_morecore guarantees that the end of the