ruby-changes:48404
From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 20:43:22 +0900 (JST)
Subject: [ruby-changes:48404] ko1:r60518 (trunk): * proc.c (proc_new): use `ec` directly.
ko1 2017-10-28 20:43:17 +0900 (Sat, 28 Oct 2017) New Revision: 60518 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60518 Log: * proc.c (proc_new): use `ec` directly. Modified files: trunk/proc.c Index: proc.c =================================================================== --- proc.c (revision 60517) +++ proc.c (revision 60518) @@ -695,8 +695,8 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/proc.c#L695 proc_new(VALUE klass, int8_t is_lambda) { VALUE procval; - rb_thread_t *th = GET_THREAD(); - rb_control_frame_t *cfp = th->ec->cfp; + const rb_execution_context_t *ec = GET_EC(); + rb_control_frame_t *cfp = ec->cfp; VALUE block_handler; if ((block_handler = rb_vm_frame_block_handler(cfp)) == VM_BLOCK_HANDLER_NONE) { @@ -747,7 +747,7 @@ proc_new(VALUE klass, int8_t is_lambda) https://github.com/ruby/ruby/blob/trunk/proc.c#L747 case block_handler_type_ifunc: case block_handler_type_iseq: - return rb_vm_make_proc_lambda(th->ec, VM_BH_TO_CAPT_BLOCK(block_handler), klass, is_lambda); + return rb_vm_make_proc_lambda(ec, VM_BH_TO_CAPT_BLOCK(block_handler), klass, is_lambda); } VM_UNREACHABLE(proc_new); return Qnil; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/