# HG changeset patch # User Richard M. Stallman # Date 793221137 0 # Node ID f3a45c2e57c23faa72e97460343937a8e32ee512 # Parent fdc9df3761d863c1940fbf030bf90a05038f76c9 (r_alloc_init): Set __malloc_extra_blocks. diff -r fdc9df3761d8 -r f3a45c2e57c2 src/ralloc.c --- 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 @@ -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