Mercurial > emacs
changeset 66499:0e243de6311b
(spare_memory): No longer static.
(xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 28 Oct 2005 16:25:37 +0000 |
parents | 44a0b7df81e4 |
children | 8392b2926dd8 |
files | src/alloc.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Fri Oct 28 16:24:35 2005 +0000 +++ b/src/alloc.c Fri Oct 28 16:25:37 2005 +0000 @@ -215,7 +215,7 @@ /* Points to memory space allocated as "spare", to be freed if we run out of memory. */ -static char *spare_memory; +char *spare_memory; /* Amount of spare memory to keep in reserve. */ @@ -805,6 +805,12 @@ BLOCK_INPUT; free (block); UNBLOCK_INPUT; + +#ifndef SYSTEM_MALLOC + /* Refill the spare memory if we can. */ + if (spare_memory == 0) + refill_memory_reserve (); +#endif }