1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update NEWS / documentation with GC.start(compact:true)

This commit is contained in:
Aaron Patterson 2020-05-29 15:59:14 -07:00
parent 04b5203a03
commit 9b8825b6f9
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6
2 changed files with 9 additions and 0 deletions

View file

@ -108,6 +108,14 @@ Outstanding ones only.
* Symbol#to_proc now returns a lambda Proc.
[[Feature #16260]]
* GC
* Modified method
* GC.start now takes an option `compact: true` to compact the heap.
For example `GC.start(compact: true)` will have the same effect as
`GC.compact`.
## Stdlib updates
Outstanding ones only.

1
gc.rb
View file

@ -26,6 +26,7 @@ module GC
#
# Use full_mark: false to perform a minor GC.
# Use immediate_sweep: false to defer sweeping (use lazy sweep).
# Use compact: true to compact the heap (it implies a full mark and sweep).
#
# Note: These keyword arguments are implementation and version dependent. They
# are not guaranteed to be future-compatible, and may be ignored if the