]> git.eshelyaron.com Git - emacs.git/commit
Maintain end of specpdl instead of size
authorMattias Engdegård <mattiase@acm.org>
Sat, 26 Feb 2022 11:49:02 +0000 (12:49 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 12 Mar 2022 16:32:31 +0000 (17:32 +0100)
commitfe65db05f42bcbf755f037575b3c29b74f279bdf
treec184bf57ac6a9bc7489c9c7700dcc3bd4441083d
parent213483124b4381663efd0dd001037363223ce188
Maintain end of specpdl instead of size

Keep track of the end of specpdl explicitly since that is what we are
comparing against on critical code paths.

* src/eval.c (init_eval_once_for_pdumper, signal_or_quit)
(grow_specpdl_allocation):
* src/fileio.c (Fdo_auto_save):
* src/lisp.h (grow_specpdl):
* src/thread.c (run_thread, Fmake_thread):
* src/thread.h (struct thread_state):
Replace specpdl_size with specpdl_end, according to the equation
specpdl_end = specpdl + specpdl_size.
src/eval.c
src/fileio.c
src/lisp.h
src/thread.c
src/thread.h