ruby-changes:48397
From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 20:02:21 +0900 (JST)
Subject: [ruby-changes:48397] ko1:r60511 (trunk): * vm.c (REWIND_CFP): use `ec` directly.
ko1 2017-10-28 20:02:16 +0900 (Sat, 28 Oct 2017) New Revision: 60511 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60511 Log: * vm.c (REWIND_CFP): use `ec` directly. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 60510) +++ vm.c (revision 60511) @@ -2617,12 +2617,12 @@ vm_define_method(rb_thread_t *th, VALUE https://github.com/ruby/ruby/blob/trunk/vm.c#L2617 } #define REWIND_CFP(expr) do { \ - rb_thread_t *th__ = GET_THREAD(); \ - VALUE *const curr_sp = (th__->ec->cfp++)->sp; \ - VALUE *const saved_sp = th__->ec->cfp->sp; \ - th__->ec->cfp->sp = curr_sp; \ + rb_execution_context_t *ec__ = GET_EC(); \ + VALUE *const curr_sp = (ec__->cfp++)->sp; \ + VALUE *const saved_sp = ec__->cfp->sp; \ + ec__->cfp->sp = curr_sp; \ expr; \ - (th__->ec->cfp--)->sp = saved_sp; \ + (ec__->cfp--)->sp = saved_sp; \ } while (0) static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/