[ruby-cvs:50982] ko1:r43839 (trunk): * internal.h: do not use ruby_sized_xrealloc() and ruby_sized_xfree()

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Nov 25 10:13:33 JST 2013


ko1	2013-11-25 10:13:31 +0900 (Mon, 25 Nov 2013)

  New Revision: 43839

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

  Log:
    * internal.h: do not use ruby_sized_xrealloc() and ruby_sized_xfree()
      if HAVE_MALLOC_USABLE_SIZE (or _WIN32) is defined.
      We don't need these function if malloc_usable_size() is available.
    * gc.c: catch up this change.
    * gc.c: define HAVE_MALLOC_USABLE_SIZE on _WIN32.
    * array.c (ary_resize_capa): do not use ruby_sized_xfree() with
      local variable to avoid "unused local variable" warning.
      This change only has few impact.
    * string.c (rb_str_resize): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/gc.c
    trunk/internal.h
    trunk/string.c


More information about the ruby-cvs mailing list