changeset 10785:f3a45c2e57c2

(r_alloc_init): Set __malloc_extra_blocks.
author Richard M. Stallman <rms@gnu.org>
date Sun, 19 Feb 1995 19:12:17 +0000
parents fdc9df3761d8
children 353416feba10
files src/ralloc.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ralloc.c	Sun Feb 19 19:11:03 1995 +0000
+++ b/src/ralloc.c	Sun Feb 19 19:12:17 1995 +0000
@@ -56,6 +56,8 @@
    overlap.  */
 extern void safe_bcopy ();
 
+extern int __malloc_extra_blocks;
+
 #else /* not emacs */
 
 #include <stddef.h>
@@ -1002,6 +1004,10 @@
   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