Mercurial > emacs
comparison src/ralloc.c @ 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 | 2954efb1d06c |
| children | 9a14b32f5d71 |
comparison
equal
deleted
inserted
replaced
| 10784:fdc9df3761d8 | 10785:f3a45c2e57c2 |
|---|---|
| 53 typedef unsigned long SIZE; | 53 typedef unsigned long SIZE; |
| 54 | 54 |
| 55 /* Declared in dispnew.c, this version doesn't screw up if regions | 55 /* Declared in dispnew.c, this version doesn't screw up if regions |
| 56 overlap. */ | 56 overlap. */ |
| 57 extern void safe_bcopy (); | 57 extern void safe_bcopy (); |
| 58 | |
| 59 extern int __malloc_extra_blocks; | |
| 58 | 60 |
| 59 #else /* not emacs */ | 61 #else /* not emacs */ |
| 60 | 62 |
| 61 #include <stddef.h> | 63 #include <stddef.h> |
| 62 | 64 |
| 1000 abort (); | 1002 abort (); |
| 1001 | 1003 |
| 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 |
| 1008 address space is a multiple of page_size, even if page_size is | 1014 address space is a multiple of page_size, even if page_size is |
| 1009 not really the page size of the system running the binary in | 1015 not really the page size of the system running the binary in |
