< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #10201 has been updated by Yukihiro Matsumoto.
Do you mean you gave up adaptive GC parameters?
Matz.
----------------------------------------
Feature #10201: Dynamically changing GC tuning parameters
https://bugs.ruby-lang.org/issues/10201#change-48635
* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
----------------------------------------
Now, MRI has several GC tuning parameters to modify GC behavior given by environment variables. However, these parameters can not be changed after launched.
We can change these parameter in runtime.
For example, mruby provides some methods to change incremental GC behavior.
* GC.interval_ratio (getter)
* GC.interval_ratio= (setter)
* GC.step_ratio (getter)
* GC.step_ratio= (setter)
I propose to add method (methods) to change such GC parameters dynamically.
One idea is:
* GC.parameters #=> return a hash value
* GC.parameters(foo: xxx) #=> set GC parameter foo to xxx
* GC.parameters(foo: nil) #=> reset (to default value) GC parameter foo
Note that this API should be MRI implementation dependent.
For Environment variables, implementations can simply ignore them.
However, a ruby script using these methods can run only on supporting implementation.
So it can be compatibility issue.
--
https://bugs.ruby-lang.org/