Project

General

Profile

Backport #9524

Please backport r45021 for "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR".

Added by Koichi Sasada about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:60796]

Description

Please backport r45021
to introduce new environment variable
"RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR".

This fix doesn't change a default behavior, but we can tune
full GC frequency with this environment variable.

Associated revisions

Revision 45044
Added by Yui NARUSE about 2 years ago

merge revision(s) 45021,45022,45028: [Backport #9524]

* 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.

History

#1 [ruby-core:60797] Updated by Koichi Sasada about 2 years ago

And also r45022 only change warning message.

#2 [ruby-core:60817] Updated by Yui NARUSE about 2 years ago

  • Status changed from Open to Feedback

Those commits conflict with current ruby_2_1

#3 [ruby-core:60858] Updated by Yui NARUSE about 2 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Applied in changeset r45044.


merge revision(s) 45021,45022,45028: [Backport #9524]

* 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.

Also available in: Atom PDF