[DOC] Move GC.config news

To "Core classes updates" from "Language changes".
This commit is contained in:
Nobuyoshi Nakada 2024-12-06 21:06:37 +09:00
parent 0fac583d52
commit 3901df708d
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-06 12:18:01 +00:00

14
NEWS.md
View File

@ -25,12 +25,6 @@ Note that each entry is kept to a minimum, see links for details.
* Keyword arguments are no longer allowed in index assignment
(e.g. `a[0, kw: 1] = 2`). [[Bug #20218]]
* GC.config added to allow setting configuration variables on the Garbage
Collector. [[Feature #20443]]
* GC configuration parameter `rgengc_allow_full_mark` introduced. When `false`
GC will only mark young objects. Default is `true`. [[Feature #20443]]
## Core classes updates
Note: We're only listing outstanding class updates.
@ -40,6 +34,14 @@ Note: We're only listing outstanding class updates.
* Exception#set_backtrace now accepts arrays of Thread::Backtrace::Location.
Kernel#raise, Thread#raise and Fiber#raise also accept this new format. [[Feature #13557]]
* GC
* GC.config added to allow setting configuration variables on the Garbage
Collector. [[Feature #20443]]
* GC configuration parameter `rgengc_allow_full_mark` introduced. When `false`
GC will only mark young objects. Default is `true`. [[Feature #20443]]
* Hash
* Hash.new now accepts an optional `capacity:` argument, to preallocate the hash with a given capacity.