[ruby-cvs:61866] naruse:r54704 (trunk): * include/ruby/ruby.h (rb_mul_size_overflow): added to handle

naruse at ruby-lang.org naruse at ruby-lang.org
Fri Apr 22 20:42:31 JST 2016


naruse	2016-04-22 20:42:31 +0900 (Fri, 22 Apr 2016)

  New Revision: 54704

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

  Log:
    * include/ruby/ruby.h (rb_mul_size_overflow): added to handle
      mul overflow efficiently.
    
    * include/ruby/ruby.h (rb_alloc_tmp_buffer2): use rb_mul_size_overflow
      and avoid division where it can define DSIZE_T.
    
    * gc.c (xmalloc2_size): moved from ruby.h and use rb_mul_size_overflow.

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


More information about the ruby-cvs mailing list