Mercurial > emacs
changeset 17845:ac6367122ee2
(mallopt): Declare, if appropriate.
(r_alloc_init) [DOUG_LEA_MALLOC]: Call mallopt,
instead of setting __malloc_extra_blocks.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 16 May 1997 05:35:04 +0000 |
parents | d37bf1f56b05 |
children | c427501449a1 |
files | src/ralloc.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ralloc.c Fri May 16 02:23:12 1997 +0000 +++ b/src/ralloc.c Fri May 16 05:35:04 1997 +0000 @@ -57,7 +57,12 @@ overlap. */ extern void safe_bcopy (); +#ifdef DOUG_LEA_MALLOC +#define M_TOP_PAD -2 +extern int mallopt (); +#else extern int __malloc_extra_blocks; +#endif #else /* not emacs */ @@ -1119,9 +1124,13 @@ page_size = PAGE; extra_bytes = ROUNDUP (50000); +#ifdef DOUG_LEA_MALLOC + mallopt (M_TOP_PAD, 64 * 4096); +#else /* Give GNU malloc's morecore some hysteresis so that we move all the relocatable blocks much less often. */ __malloc_extra_blocks = 64; +#endif first_heap->end = (POINTER) ROUNDUP (first_heap->start);