[ruby-cvs:67957] ko1:r60776 (trunk): remove rb_thread_t::event_hooks.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Nov 15 22:21:24 JST 2017


ko1	2017-11-15 22:21:24 +0900 (Wed, 15 Nov 2017)

  New Revision: 60776

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60776

  Log:
    remove rb_thread_t::event_hooks.
    
    * vm_core.h (rb_thread_t): remove rb_thread_t::event_hooks.
    
    * vm_trace.c: all hooks are connected to vm->event_hooks and
      add rb_event_hook_t::filter::th to filter invoke thread.
      It will simplify invoking hooks code.
    
    * thread.c (thread_start_func_2): clear thread specific trace_func.
    
    * test/ruby/test_settracefunc.rb: add a test for Thread#add_trace_func.

  Modified files:
    trunk/test/ruby/test_settracefunc.rb
    trunk/thread.c
    trunk/vm.c
    trunk/vm_core.h
    trunk/vm_trace.c


More information about the ruby-cvs mailing list