https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-02-17T04:43:11ZRuby Issue Tracking SystemBackport21 - Backport #9524: Please backport r45021 for "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR".https://bugs.ruby-lang.org/issues/9524?journal_id=452102014-02-17T04:43:11Zko1 (Koichi Sasada)
<ul></ul><p>And also r45022 only change warning message.</p> Backport21 - Backport #9524: Please backport r45021 for "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR".https://bugs.ruby-lang.org/issues/9524?journal_id=452342014-02-18T08:03:27Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Those commits conflict with current ruby_2_1</p> Backport21 - Backport #9524: Please backport r45021 for "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR".https://bugs.ruby-lang.org/issues/9524?journal_id=452712014-02-19T06:01:08Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r45044.</p>
<hr>
<p>merge revision(s) 45021,45022,45028: [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Please backport r45021 for "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR". (Closed)" href="https://bugs.ruby-lang.org/issues/9524">#9524</a>]</p>
<pre><code>* 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
* test/ruby/test_gc.rb: add a test.
* gc.c (get_envparam_double): fix a warning message.
</code></pre>