diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b774f1206f..c9c1b222a3 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -510,7 +510,8 @@ vm_setup_method(rb_thread_t *th, rb_control_frame_t *cfp, sp = rsp + iseq->arg_size; - if (LIKELY(!(flag & VM_CALL_TAILCALL_BIT))) { + if (LIKELY(!(flag & VM_CALL_TAILCALL_BIT) || + VM_FRAME_TYPE_FINISH_P(th->cfp))) { if (0) printf("local_size: %d, arg_size: %d\n", iseq->local_size, iseq->arg_size); |