[Top][All Lists]
[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: |
Tue, 04 Oct 2005 16:26:14 -0400 |
Index: emacs/src/alloc.c
diff -c emacs/src/alloc.c:1.375 emacs/src/alloc.c:1.376
*** emacs/src/alloc.c:1.375 Fri Sep 30 22:38:16 2005
--- emacs/src/alloc.c Tue Oct 4 20:26:13 2005
***************
*** 547,552 ****
--- 547,567 ----
return (spare_memory ? Qnil : Qt);
}
+ /* If we released our reserve (due to running out of memory),
+ and we have a fair amount free once again,
+ try to set aside another reserve in case we run out once more.
+
+ This is called when a relocatable block is freed in ralloc.c. */
+
+ void
+ refill_memory_reserve ()
+ {
+ #ifndef SYSTEM_MALLOC
+ if (spare_memory == 0)
+ spare_memory = (char *) malloc ((size_t) SPARE_MEMORY);
+ #endif
+ }
+
/* Called if we can't allocate relocatable space for a buffer. */
void
***************
*** 1134,1153 ****
#ifndef SYSTEM_MALLOC
- /* If we released our reserve (due to running out of memory),
- and we have a fair amount free once again,
- try to set aside another reserve in case we run out once more.
-
- This is called when a relocatable block is freed in ralloc.c. */
-
- void
- refill_memory_reserve ()
- {
- if (spare_memory == 0)
- spare_memory = (char *) malloc ((size_t) SPARE_MEMORY);
- }
-
-
/* Arranging to disable input signals while we're in malloc.
This only works with GNU malloc. To help out systems which can't
--- 1149,1154 ----
- [Emacs-diffs] Changes to emacs/src/alloc.c,
Richard M . Stallman <=