From 9ca50884282cb91e0d6dba6a8dfcfd4fc0eceea5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 10:43:30 +0000 Subject: `th` -> `ec` for rb_vm_rewind_cfp. * vm.c (rb_vm_rewind_cfp): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index eba1791c45..25ee6d0b1b 100644 --- a/vm.c +++ b/vm.c @@ -542,15 +542,15 @@ rb_vm_pop_cfunc_frame(void) } void -rb_vm_rewind_cfp(rb_thread_t *th, rb_control_frame_t *cfp) +rb_vm_rewind_cfp(rb_execution_context_t *ec, rb_control_frame_t *cfp) { /* check skipped frame */ - while (th->ec->cfp != cfp) { + while (ec->cfp != cfp) { #if VMDEBUG - printf("skipped frame: %s\n", vm_frametype_name(th->ec->cfp)); + printf("skipped frame: %s\n", vm_frametype_name(ec->cfp)); #endif - if (VM_FRAME_TYPE(th->ec->cfp) != VM_FRAME_MAGIC_CFUNC) { - rb_vm_pop_frame(th->ec); + if (VM_FRAME_TYPE(ec->cfp) != VM_FRAME_MAGIC_CFUNC) { + rb_vm_pop_frame(ec); } else { /* unlikely path */ rb_vm_pop_cfunc_frame(); -- cgit v1.2.3