[ruby-cvs:59495] ko1:r52344 (trunk): * gc.c: add rb_objspace::flags::has_hook to represent hook availability.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Oct 29 15:17:08 JST 2015


ko1	2015-10-29 15:17:07 +0900 (Thu, 29 Oct 2015)

  New Revision: 52344

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

  Log:
    * gc.c: add rb_objspace::flags::has_hook to represent hook availability.
    
    * gc.c: add gc_event_hook_available_p(objspace) to check that flag.
    
    * gc.c (newobj_of): use gc_event_hook_available_p() instead of
      checking gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ).
      for performance.
    
    * gc.c (newobj_init): add UNLIKELY() for FL_WB_PROTECTED flag.
    
    * gc.c (newobj_init): change parameters order (trivial change).

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list