diff options
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 6 |
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; | |||
| 56 | overlap. */ | 56 | overlap. */ |
| 57 | extern void safe_bcopy (); | 57 | extern void safe_bcopy (); |
| 58 | 58 | ||
| 59 | extern int __malloc_extra_blocks; | ||
| 60 | |||
| 59 | #else /* not emacs */ | 61 | #else /* not emacs */ |
| 60 | 62 | ||
| 61 | #include <stddef.h> | 63 | #include <stddef.h> |
| @@ -1002,6 +1004,10 @@ r_alloc_init () | |||
| 1002 | page_size = PAGE; | 1004 | page_size = PAGE; |
| 1003 | extra_bytes = ROUNDUP (50000); | 1005 | extra_bytes = ROUNDUP (50000); |
| 1004 | 1006 | ||
| 1007 | /* Give GNU malloc's morecore some hysteresis | ||
| 1008 | so that we move all the relocatable blocks much less often. */ | ||
| 1009 | __malloc_extra_blocks = 64; | ||
| 1010 | |||
| 1005 | first_heap->end = (POINTER) ROUNDUP (first_heap->start); | 1011 | first_heap->end = (POINTER) ROUNDUP (first_heap->start); |
| 1006 | 1012 | ||
| 1007 | /* The extra call to real_morecore guarantees that the end of the | 1013 | /* The extra call to real_morecore guarantees that the end of the |