[ruby-cvs:52166] ko1:r45021 (trunk): * gc.c: introduce new environment variable

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Feb 17 12:27:13 JST 2014


ko1	2014-02-17 12:27:13 +0900 (Mon, 17 Feb 2014)

  New Revision: 45021

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

  Log:
    * gc.c: introduce new environment variable
      "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR" to control major/minor GC
      frequency.
      Do full GC when the number of old objects is more than R * N
      where R is this factor and
                    N is the number of old objects just after last full GC.
    * test/ruby/test_gc.rb: add a test.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/test/ruby/test_gc.rb


More information about the ruby-cvs mailing list