Mercurial > emacs
diff src/alloc.c @ 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 | 5159ee08b219 |
| children | 88aab29bf2b2 |
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 }
