[ruby-cvs:51143] ko1:r43998 (trunk): * gc.c (vm_malloc_size): added.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Dec 5 13:54:21 JST 2013


ko1	2013-12-05 13:54:20 +0900 (Thu, 05 Dec 2013)

  New Revision: 43998

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

  Log:
    * gc.c (vm_malloc_size): added.
      return malloc_usable_size() if possible.
    * gc.c (MALLOC_ALLOCATED_SIZE): add new setting macro to enable
      GC.allocated_size.
      If platform supports `malloc_usable_size()' (or similar one),
      GC.allocated_size can be implemented with this function.
      Default is 0.
    * gc.c (vm_xmalloc, vm_xrealloc, vm_xfree): use vm_malloc_size()
      to detect collect allocated size.
    * gc.c (vm_malloc_increase): refactoring.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list