ruby-changes:38314
From: nobu <ko1@a...>
Date: Sun, 26 Apr 2015 09:16:44 +0900 (JST)
Subject: [ruby-changes:38314] nobu:r50395 (trunk): gc.c: event hook thread argument
nobu 2015-04-26 09:16:38 +0900 (Sun, 26 Apr 2015) New Revision: 50395 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50395 Log: gc.c: event hook thread argument * gc.c (gc_event_hook_body): move th to an argument. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 50394) +++ gc.c (revision 50395) @@ -1654,15 +1654,14 @@ rb_objspace_set_event_hook(const rb_even https://github.com/ruby/ruby/blob/trunk/gc.c#L1654 } static void -gc_event_hook_body(rb_objspace_t *objspace, const rb_event_flag_t event, VALUE data) +gc_event_hook_body(rb_thread_t *th, rb_objspace_t *objspace, const rb_event_flag_t event, VALUE data) { - rb_thread_t *th = GET_THREAD(); EXEC_EVENT_HOOK(th, event, th->cfp->self, 0, 0, data); } #define gc_event_hook(objspace, event, data) do { \ if (UNLIKELY((objspace)->hook_events & (event))) { \ - gc_event_hook_body((objspace), (event), (data)); \ + gc_event_hook_body(GET_THREAD(), (objspace), (event), (data)); \ } \ } while (0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/