Commit c34496d0 authored by Paul Eggert's avatar Paul Eggert

Keep track of consing while GC’s inhibited

* src/alloc.c (allow_garbage_collection): Do not discard the count
of consing that occurred while GC was inhibited.
Problem and initial fix reported by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2019-07/msg00523.html
parent f9443e2a
Pipeline #2526 passed with stage
in 57 minutes and 52 seconds
......@@ -5507,7 +5507,7 @@ staticpro (Lisp_Object const *varaddress)
static void
allow_garbage_collection (intmax_t consing)
{
consing_until_gc = consing;
consing_until_gc -= OBJECT_CT_MAX - consing;
garbage_collection_inhibited--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment