diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-18 17:36:24 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-18 17:36:24 +0000 |
commit | 5968f54f55a157aac934b57a9925e95a8b747221 (patch) | |
tree | 50864e06bac8c5ba33e308f176534c52b229da6b /execute.c | |
parent | 8dca3ef10d01fe116d34b2c4768b08e678d180b0 (diff) |
Fix a bug in stack reallocation during deep recursion.
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}; |