diff options
| author | Richard M. Stallman | 2005-10-28 16:25:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-10-28 16:25:37 +0000 |
| commit | 745575ff149a7ceab51241854d8e0014f2c1dbdb (patch) | |
| tree | 307b3176e7f177e122d9fd950d23626a1be53f0c /src | |
| parent | 4df8d8ecd81823551541f653be0a5bf4f0b71ccc (diff) | |
| download | emacs-745575ff149a7ceab51241854d8e0014f2c1dbdb.tar.gz emacs-745575ff149a7ceab51241854d8e0014f2c1dbdb.zip | |
(spare_memory): No longer static.
(xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 54533ff351a..b8744b3f09a 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -215,7 +215,7 @@ static int total_free_floats, total_floats; | |||
| 215 | /* Points to memory space allocated as "spare", to be freed if we run | 215 | /* Points to memory space allocated as "spare", to be freed if we run |
| 216 | out of memory. */ | 216 | out of memory. */ |
| 217 | 217 | ||
| 218 | static char *spare_memory; | 218 | char *spare_memory; |
| 219 | 219 | ||
| 220 | /* Amount of spare memory to keep in reserve. */ | 220 | /* Amount of spare memory to keep in reserve. */ |
| 221 | 221 | ||
| @@ -805,6 +805,12 @@ xfree (block) | |||
| 805 | BLOCK_INPUT; | 805 | BLOCK_INPUT; |
| 806 | free (block); | 806 | free (block); |
| 807 | UNBLOCK_INPUT; | 807 | UNBLOCK_INPUT; |
| 808 | |||
| 809 | #ifndef SYSTEM_MALLOC | ||
| 810 | /* Refill the spare memory if we can. */ | ||
| 811 | if (spare_memory == 0) | ||
| 812 | refill_memory_reserve (); | ||
| 813 | #endif | ||
| 808 | } | 814 | } |
| 809 | 815 | ||
| 810 | 816 | ||