diff options
| author | Paul Eggert | 2019-08-13 12:28:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-13 12:29:13 -0700 |
| commit | f4974d6fe6137f436763998be27afafea9866098 (patch) | |
| tree | d94eb04757fbd52247393522ad80b1c45834ebd1 /src/alloc.c | |
| parent | b80559be212292d44ce14ca5e94505cab4d9a868 (diff) | |
| download | emacs-f4974d6fe6137f436763998be27afafea9866098.tar.gz emacs-f4974d6fe6137f436763998be27afafea9866098.zip | |
Don’t increase consing_until_gc when out of memory
* src/alloc.c (memory_full): Don’t increase consing_until_gc.
Suggested by Eli Zaretskii (Bug#37006#46).
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 14b0a7b8381..0548a09cb8b 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3866,7 +3866,7 @@ memory_full (size_t nbytes) | |||
| 3866 | if (! enough_free_memory) | 3866 | if (! enough_free_memory) |
| 3867 | { | 3867 | { |
| 3868 | Vmemory_full = Qt; | 3868 | Vmemory_full = Qt; |
| 3869 | consing_until_gc = memory_full_cons_threshold; | 3869 | consing_until_gc = min (consing_until_gc, memory_full_cons_threshold); |
| 3870 | 3870 | ||
| 3871 | /* The first time we get here, free the spare memory. */ | 3871 | /* The first time we get here, free the spare memory. */ |
| 3872 | for (int i = 0; i < ARRAYELTS (spare_memory); i++) | 3872 | for (int i = 0; i < ARRAYELTS (spare_memory); i++) |