[ruby-cvs:65173] normal:r58006 (trunk): remove branches in dmark and dfree GC callbacks

normal at ruby-lang.org normal at ruby-lang.org
Sat Mar 18 04:59:57 JST 2017


normal	2017-03-18 04:59:56 +0900 (Sat, 18 Mar 2017)

  New Revision: 58006

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

  Log:
    remove branches in dmark and dfree GC callbacks
    
    dmark and dfree callbacks are never called in gc.c for NULL
    DATA_PTR values, not even for zombie objects.
    
    * compile.c (ibf_loader_mark): remove branch for pointer validity
    * compile.c (ibf_loader_free): ditto
    * cont.c (cont_free): ditto
    * cont.c (fiber_free): ditto
    * dir.c (dir_free): ditto
    * ext/stringio/stringio.c (strio_mark): ditto
    * proc.c (binding_free): ditto
    * thread_sync.c (mutex_free): ditto
    * vm.c (thread_free): ditto

  Modified files:
    trunk/compile.c
    trunk/cont.c
    trunk/dir.c
    trunk/ext/stringio/stringio.c
    trunk/proc.c
    trunk/thread_sync.c
    trunk/vm.c


More information about the ruby-cvs mailing list