[ruby-cvs:61826] naruse:r54664 (trunk): * gc.c (rb_alloc_tmp_buffer_with_count): added like xmalloc2 to

naruse at ruby-lang.org naruse at ruby-lang.org
Fri Apr 22 05:59:40 JST 2016


naruse	2016-04-22 05:59:40 +0900 (Fri, 22 Apr 2016)

  New Revision: 54664

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

  Log:
    * gc.c (rb_alloc_tmp_buffer_with_count): added like xmalloc2 to
      avoid duplicated check of size.
    
    * gc.c (ruby_xmalloc2): added to keep separate layers.
    
    * include/ruby/ruby.h (rb_alloc_tmp_buffer2): added to check
      the size more statically.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/include/ruby/ruby.h


More information about the ruby-cvs mailing list