projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb4603
)
Lessen stack consumption in recursive read1
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 13 Jul 2018 03:23:07 +0000
(20:23 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 13 Jul 2018 03:23:47 +0000
(20:23 -0700)
* src/lread.c (read1): Shrink local buffer size from
MAX_ALLOCA to 128 (Bug#31995).
src/lread.c
patch
|
blob
|
history
diff --git
a/src/lread.c
b/src/lread.c
index 72523c057f17ddc399d508172611f9f1f3c3b582..d5ba48a170d37a0ef0d43fb73418bb21af2631cd 100644
(file)
--- a/
src/lread.c
+++ b/
src/lread.c
@@
-2677,7
+2677,7
@@
read1 (Lisp_Object readcharfun, int *pch, bool first_in_list)
int c;
bool uninterned_symbol = false;
bool multibyte;
- char stackbuf[
MAX_ALLOCA];
+ char stackbuf[
128]; /* Small, as read1 is recursive (Bug#31995). */
current_thread->stack_top = stackbuf;
*pch = 0;