Mercurial > emacs
changeset 42096:a4794d1dada1
(pure_alloc): After overflow, allocate just a small block.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 16 Dec 2001 21:52:36 +0000 |
parents | 9e8a4b70df81 |
children | e12d545c9a48 |
files | src/alloc.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Sun Dec 16 21:52:28 2001 +0000 +++ b/src/alloc.c Sun Dec 16 21:52:36 2001 +0000 @@ -3816,8 +3816,11 @@ if (pure_bytes_used + nbytes > pure_size) { - beg = purebeg = (char *) xmalloc (PURESIZE); - pure_size = PURESIZE; + /* Don't allocate a large amount here, + because it might get mmap'd and then its address + might not be usable. */ + beg = purebeg = (char *) xmalloc (10000); + pure_size = 10000; pure_bytes_used_before_overflow += pure_bytes_used; pure_bytes_used = 0; }