diff options
| author | Paul Eggert | 2019-08-13 10:03:41 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-13 10:04:01 -0700 |
| commit | 8882761440c3227850043dddf5aec5394c8cbe28 (patch) | |
| tree | c8dc56db829777e19c8e5bfe97695db99079138e /src/alloc.c | |
| parent | c0e720cdd97b28d532f4deb66861518a70d062ac (diff) | |
| download | emacs-8882761440c3227850043dddf5aec5394c8cbe28.tar.gz emacs-8882761440c3227850043dddf5aec5394c8cbe28.zip | |
Fix GC threshold typo
Problem reported by Eli Zaretskii (Bug#37006#25).
* src/alloc.c (garbage_collect_1): Fix typo in threshold calc.
Go back to dividing by 10 since the numerator’s a constant now.
Problem introduced in 2019-07-21T02:40:03Z!eggert@cs.ucla.edu.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 39833f8decb..c7419e2fa5f 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5932,8 +5932,8 @@ garbage_collect_1 (struct gcstat *gcst) | |||
| 5932 | consing_until_gc = memory_full_cons_threshold; | 5932 | consing_until_gc = memory_full_cons_threshold; |
| 5933 | else | 5933 | else |
| 5934 | { | 5934 | { |
| 5935 | intptr_t threshold = min (max (GC_DEFAULT_THRESHOLD, | 5935 | intptr_t threshold = min (max (GC_DEFAULT_THRESHOLD / 10, |
| 5936 | gc_cons_threshold >> 3), | 5936 | gc_cons_threshold), |
| 5937 | OBJECT_CT_MAX); | 5937 | OBJECT_CT_MAX); |
| 5938 | if (FLOATP (Vgc_cons_percentage)) | 5938 | if (FLOATP (Vgc_cons_percentage)) |
| 5939 | { | 5939 | { |