summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-04-03 19:49:42 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-04-03 19:49:42 +0900
commit12f6496ff8919cd29b0c1850d15170d3bd7e6429 (patch)
tree5c63f2077ed3b622689c98cb3cd2af64cffef49f
parent6dabb33635a149fc571cf285352ea4f89bdc52f0 (diff)
downloadmruby-12f6496ff8919cd29b0c1850d15170d3bd7e6429.tar.gz
mruby-12f6496ff8919cd29b0c1850d15170d3bd7e6429.zip
Revert "Adjust VM stack window size; fix #3547"
This reverts commit 6dabb33635a149fc571cf285352ea4f89bdc52f0.
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index 2fb55c58c..d633a09b2 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -378,6 +378,7 @@ main(int argc, char **argv)
int i;
mrb_bool code_block_open = FALSE;
int ai;
+ unsigned int stack_keep = 0;
/* new interpreter instance */
mrb = mrb_open();
@@ -548,7 +549,8 @@ done:
result = mrb_vm_run(mrb,
proc,
mrb_top_self(mrb),
- cxt->slen);
+ stack_keep);
+ stack_keep = proc->body.irep->nlocals;
/* did an exception occur? */
if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc), 0);