emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/alloc.c


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/alloc.c
Date: Sun, 16 Dec 2001 16:52:36 -0500

Index: emacs/src/alloc.c
diff -c emacs/src/alloc.c:1.257 emacs/src/alloc.c:1.258
*** emacs/src/alloc.c:1.257     Fri Dec  7 07:32:21 2001
--- emacs/src/alloc.c   Sun Dec 16 16:52:36 2001
***************
*** 3816,3823 ****
    
    if (pure_bytes_used + nbytes > pure_size)
      {
!       beg = purebeg = (char *) xmalloc (PURESIZE);
!       pure_size = PURESIZE;
        pure_bytes_used_before_overflow += pure_bytes_used;
        pure_bytes_used = 0;
      }
--- 3816,3826 ----
    
    if (pure_bytes_used + nbytes > pure_size)
      {
!       /* 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;
      }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]