summaryrefslogtreecommitdiff
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-02-19 19:12:17 +0000
committerRichard M. Stallman <rms@gnu.org>1995-02-19 19:12:17 +0000
commitee8f8456c84db6499b08269c2eb827dbf086cc55 (patch)
tree772411fef59f0e6a7825807296d1027614b9dca3 /src/ralloc.c
parent230d0b8acd557e065e1545a14c4ca5c6cf4cbef7 (diff)
downloademacs-ee8f8456c84db6499b08269c2eb827dbf086cc55.tar.gz
(r_alloc_init): Set __malloc_extra_blocks.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index d9fb639379b..d5248f2cb0a 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -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