[ruby-cvs:50708] ko1:r43565 (trunk): * gc.c: modify malloc_limit strategy.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Nov 7 19:45:02 JST 2013


ko1	2013-11-07 19:45:01 +0900 (Thu, 07 Nov 2013)

  New Revision: 43565

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

  Log:
    * gc.c: modify malloc_limit strategy.
      * fix default vaues:
        GC_MALLOC_LIMIT_GROWTH_FACTOR
        GC_MALLOC_LIMIT: 8MB -> 16MB
        GC_MALLOC_LIMIT_MAX: 384MB -> 32MB
      * algorithm of malloc_limit increment.
        if (malloc_increase < malloc_limit) {
          next_malloc_limit = malloc_limit * factor
          if (malloc_limit > malloc_limit_max) {
            malloc_limit = malloc_increase
          }
        }
        This algorithm change malloc_limit from
        16MB -> 32MB slowly.
        If malloc_limit exceeds malloc_limit_max, then
        increase with malloc_increase.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list