[ruby-cvs:54712] normal:r47564 (trunk): proc/env DATA_PTR is never NULL

normal at ruby-lang.org normal at ruby-lang.org
Sat Sep 13 06:34:14 JST 2014


normal	2014-09-13 06:34:12 +0900 (Sat, 13 Sep 2014)

  New Revision: 47564

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

  Log:
    proc/env DATA_PTR is never NULL
    
    * proc.c (proc_free): remove, use RUBY_TYPED_DEFAULT_FREE
      (proc_mark, proc_memsize): remove needless branching
    
    * vm.c (env_free): remove, use RUBY_TYPED_DEFAULT_FREE
      (env_mark, env_memsize): remove needless branching
    
    This shows a tiny ~0.5% improvement in benchmark/bm_vm2_newlambda.rb
    but also removes a lot of code.

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
    trunk/vm.c


More information about the ruby-cvs mailing list