From e09dfa64f574fd6b49e65a3d092a1afdcc4d9d32 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 10:01:54 +0000 Subject: move fields from `th` to `ec`. * vm_core.h: move rb_thread_t::passed_block_handler to rb_execution_context_t::passed_block_handler. Also move rb_thread_t::passed_bmethod_me to rb_execution_context_t::passed_bmethod_me. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 591ac02db7..376e80246a 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1890,9 +1890,9 @@ call_method_entry(rb_thread_t *th, VALUE defined_class, VALUE obj, ID id, { const rb_callable_method_entry_t *cme = prepare_callable_method_entry(defined_class, id, me); - VALUE passed_block_handler = vm_passed_block_handler(th); + VALUE passed_block_handler = vm_passed_block_handler(th->ec); VALUE result = vm_call0(th->ec, obj, id, argc, argv, cme); - vm_passed_block_handler_set(th, passed_block_handler); + vm_passed_block_handler_set(th->ec, passed_block_handler); return result; } -- cgit v1.2.3