summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-07 15:05:14 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-07 15:05:14 +0900
commitcdf173d32c41ee24059d63dd8b020acaa2a40c5e (patch)
tree3d76de48eb6100d6a7c52f47d1e18bc05b1d3884
parent0e46b14b9e8cece4fd75b003a7a3391116dd6eee (diff)
downloadmruby-cdf173d32c41ee24059d63dd8b020acaa2a40c5e.tar.gz
mruby-cdf173d32c41ee24059d63dd8b020acaa2a40c5e.zip
Avoid updating to reallocated stack in `OP_RETURN`; fix #3870
The code was introduced to address #3175 but it's no longer needed.
-rw-r--r--src/vm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vm.c b/src/vm.c
index bad4810ed..c65d86d8b 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1882,7 +1882,6 @@ RETRY_TRY_BLOCK:
if (mrb->exc) {
mrb_callinfo *ci0;
- mrb_value *stk;
L_RAISE:
ci0 = ci = mrb->c->ci;
@@ -1890,7 +1889,6 @@ RETRY_TRY_BLOCK:
if (ci->ridx == 0) goto L_FTOP;
goto L_RESCUE;
}
- stk = mrb->c->stack;
while (ci[0].ridx == ci[-1].ridx) {
cipop(mrb);
mrb->c->stack = ci->stackent;
@@ -1900,7 +1898,6 @@ RETRY_TRY_BLOCK:
}
ci = mrb->c->ci;
if (ci == mrb->c->cibase) {
- mrb->c->stack = stk;
if (ci->ridx == 0) {
L_FTOP: /* fiber top */
if (mrb->c == mrb->root_c) {