ruby-changes:68170
From: S-H-GAMELINKS <ko1@a...>
Date: Wed, 29 Sep 2021 05:17:14 +0900 (JST)
Subject: [ruby-changes:68170] d3bd73823b (master): Refactor rb_add_event_hook function
https://git.ruby-lang.org/ruby.git/commit/?id=d3bd73823b From d3bd73823b6431f9037d1b72142971d3204ba565 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS <gamelinks007@g...> Date: Tue, 28 Sep 2021 22:46:47 +0900 Subject: Refactor rb_add_event_hook function --- vm_trace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm_trace.c b/vm_trace.c index ac65e61db1..b3453b9fb3 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -167,8 +167,7 @@ rb_thread_add_event_hook(VALUE thval, rb_event_hook_func_t func, rb_event_flag_t https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L167 void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data) { - rb_event_hook_t *hook = alloc_event_hook(func, events, data, RUBY_EVENT_HOOK_FLAG_SAFE); - connect_event_hook(GET_EC(), hook); + rb_add_event_hook2(func, events, data, RUBY_EVENT_HOOK_FLAG_SAFE); } void -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/