diff src/alloc.c @ 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 a555c6419185
children 6643f205d5db
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;
     }