summaryrefslogtreecommitdiffstats
path: root/execute.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-18 17:36:24 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-18 17:36:24 +0000
commit5968f54f55a157aac934b57a9925e95a8b747221 (patch)
tree50864e06bac8c5ba33e308f176534c52b229da6b /execute.c
parent8dca3ef10d01fe116d34b2c4768b08e678d180b0 (diff)
Fix a bug in stack reallocation during deep recursion.
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/execute.c b/execute.c
index a4719aae..6d0bf727 100644
--- a/execute.c
+++ b/execute.c
@@ -469,9 +469,9 @@ jv jq_next() {
void jq_init(struct bytecode* bc, jv input) {
- forkable_stack_init(&data_stk, sizeof(stackval) * 1000); // FIXME: lower this number, see if it breaks
- forkable_stack_init(&frame_stk, 10240); // FIXME: lower this number, see if it breaks
- forkable_stack_init(&fork_stk, 10240); // FIXME: lower this number, see if it breaks
+ forkable_stack_init(&data_stk, sizeof(stackval) * 100);
+ forkable_stack_init(&frame_stk, 1024);
+ forkable_stack_init(&fork_stk, 1024);
stack_push(stackval_root(input));
struct closure top = {bc, -1};