Fix a bug in stack reallocation during deep recursion.

This commit is contained in:
Stephen Dolan committed 2012-12-18 17:36:24 +00:00
1 parent 8dca3ef10d
commit 5968f54f55
3 files changed
+20 -12

No files matched your search

+3 -3
View File
@@ -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};