From 5968f54f55a157aac934b57a9925e95a8b747221 Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Tue, 18 Dec 2012 17:36:24 +0000 Subject: Fix a bug in stack reallocation during deep recursion. --- execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'execute.c') 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}; -- cgit v1.2.3