[ruby-cvs:50566] ko1:r43424 (trunk): * gc.c (vm_malloc_increase): do gc_rest_sweep() before GC.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Sat Oct 26 11:34:25 JST 2013


ko1	2013-10-26 11:34:23 +0900 (Sat, 26 Oct 2013)

  New Revision: 43424

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

  Log:
    * gc.c (vm_malloc_increase): do gc_rest_sweep() before GC.
      gc_rest_sweep() can reduce malloc_increase, so try it before GC.
      Otherwise, malloc_increase can be less than malloc_limit at
      gc_before_sweep(). This means that re-calculation of malloc_limit
      may be wrong value.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list