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: Fri, 28 Oct 2005 12:25:38 -0400

Index: emacs/src/alloc.c
diff -c emacs/src/alloc.c:1.376 emacs/src/alloc.c:1.377
*** emacs/src/alloc.c:1.376     Tue Oct  4 20:26:13 2005
--- emacs/src/alloc.c   Fri Oct 28 16:25:37 2005
***************
*** 215,221 ****
  /* Points to memory space allocated as "spare", to be freed if we run
     out of memory.  */
  
! static char *spare_memory;
  
  /* Amount of spare memory to keep in reserve.  */
  
--- 215,221 ----
  /* Points to memory space allocated as "spare", to be freed if we run
     out of memory.  */
  
! char *spare_memory;
  
  /* Amount of spare memory to keep in reserve.  */
  
***************
*** 805,810 ****
--- 805,816 ----
    BLOCK_INPUT;
    free (block);
    UNBLOCK_INPUT;
+ 
+ #ifndef SYSTEM_MALLOC
+   /* Refill the spare memory if we can.  */
+   if (spare_memory == 0)
+     refill_memory_reserve ();
+ #endif
  }
  
  




reply via email to

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