Project

General

Profile

« Previous | Next » 

Revision 555f6cb0

Added by ko1 (Koichi Sasada) over 9 years ago

  • gc.c: add GC parameters to configure the following values:

    • RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO:
      allocate additional pages when free slots is lower than
      the value (total_slots * (this ratio)).
    • RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO:
      allow to free pages when free slots is greater thatn
      the value (total_slots * (this ratio)).

    Before this change, these values are hard coded.

  • gc.c (ruby_gc_params_t): ditto.

  • gc.c (ruby_gc_set_params): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e