[ruby-cvs:61643] ko1:r54481 (trunk): * gc.c (get_envparam_double): take an upper_bound.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Apr 4 17:41:55 JST 2016


ko1	2016-04-04 17:41:55 +0900 (Mon, 04 Apr 2016)

  New Revision: 54481

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54481

  Log:
    * gc.c (get_envparam_double): take an upper_bound.
    
      And also take an accept_zero flag which allow to accept zero
      even if lower_bound is set.
    
    * gc.c (ruby_gc_set_params): fix parameters.
    
      RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO set 0.9 as *lower_bound*, so that
      it should be upper_bound.
      Set RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO as lower bound.
    
      Also set lower/upper bound of RUBY_GC_HEAP_FREE_SLOTS_GOAL_RATIO to
      RUBY_GC_HEAP_FREE_SLOTS_MIN/MAX_RATIO.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list