From a288b87c4c4469b98d75125d3f24eb904d02ca28 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 29 Oct 2017 13:19:14 +0000 Subject: EXEC_EVENT_HOOK(ec, ...) * vm_core.h (EXEC_EVENT_HOOK): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index e3330cab4a..5a98a19cf3 100644 --- a/thread.c +++ b/thread.c @@ -584,11 +584,11 @@ thread_do_start(rb_thread_t *th, VALUE args) th->ec->errinfo = Qnil; th->ec->root_lep = rb_vm_proc_local_ep(th->first_proc); th->ec->root_svar = Qfalse; - EXEC_EVENT_HOOK(th, RUBY_EVENT_THREAD_BEGIN, th->self, 0, 0, 0, Qundef); + EXEC_EVENT_HOOK(th->ec, RUBY_EVENT_THREAD_BEGIN, th->self, 0, 0, 0, Qundef); th->value = rb_vm_invoke_proc(th->ec, proc, (int)RARRAY_LEN(args), RARRAY_CONST_PTR(args), VM_BLOCK_HANDLER_NONE); - EXEC_EVENT_HOOK(th, RUBY_EVENT_THREAD_END, th->self, 0, 0, 0, Qundef); + EXEC_EVENT_HOOK(th->ec, RUBY_EVENT_THREAD_END, th->self, 0, 0, 0, Qundef); } else { th->value = (*th->first_func)((void *)args); @@ -2094,7 +2094,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing) if (th->status == THREAD_RUNNABLE) th->running_time_us += TIME_QUANTUM_USEC; - EXEC_EVENT_HOOK(th, RUBY_INTERNAL_EVENT_SWITCH, th->ec->cfp->self, + EXEC_EVENT_HOOK(th->ec, RUBY_INTERNAL_EVENT_SWITCH, th->ec->cfp->self, 0, 0, 0, Qundef); rb_thread_schedule_limits(limits_us); -- cgit v1.2.3