[ruby-cvs:53094] ko1:r45948 (trunk): * gc.c: introduce macros to remove magic number.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu May 15 18:43:20 JST 2014


ko1	2014-05-15 18:43:18 +0900 (Thu, 15 May 2014)

  New Revision: 45948

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

  Log:
    * gc.c: introduce macros to remove magic number.
      GC_HEAP_FREE_SLOTS_MIN_RATIO = 0.3: guarantee minimum empty slots
                                          ratio after sweep.
      GC_HEAP_FREE_SLOTS_MAX_RATIO = 0.8: allow to free pages 0.2 (= 1-0.8)
                                          of current existing slots.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list