[ruby-cvs:59496] nobu:r52345 (trunk): gc.c: fix UNLIKELY usage

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Oct 29 16:21:25 JST 2015


nobu	2015-10-29 16:21:24 +0900 (Thu, 29 Oct 2015)

  New Revision: 52345

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

  Log:
    gc.c: fix UNLIKELY usage
    
    * gc.c (gc_event_hook_needed_p): UNLIKELY makes no sense for
      boolean flag value.
    
    * gc.c (gc_event_hook, newobj_init): use in conditions instead.

  Modified files:
    trunk/gc.c


More information about the ruby-cvs mailing list