Mercurial > emacs
changeset 5063:9ab921a16318
(r_alloc_init): Explicitly use real_morecore
to allocate the entire incomplete page.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 18 Nov 1993 09:26:05 +0000 |
parents | cac54c4a7305 |
children | e1843fccd1f2 |
files | src/ralloc.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ralloc.c Thu Nov 18 06:05:12 1993 +0000 +++ b/src/ralloc.c Thu Nov 18 09:26:05 1993 +0000 @@ -506,8 +506,20 @@ extra_bytes = ROUNDUP (50000); page_break_value = (POINTER) ROUNDUP (break_value); + + /* The extra call to real_morecore guarantees that the end of the + address space is a multiple of page_size, even if page_size is + not really the page size of the system running the binary in + which page_size is stored. This allows a binary to be built on a + system with one page size and run on a system with a smaller page + size. */ + (*real_morecore) (page_break_value - break_value); + /* Clear the rest of the last page; this memory is in our address space even though it is after the sbrk value. */ + /* Doubly true, with the additional call that explicitly adds the + rest of that page to the address space. */ bzero (break_value, (page_break_value - break_value)); + virtual_break_value = break_value = page_break_value; use_relocatable_buffers = 1; }