Update NEWS / documentation with GC.start(compact:true)
This commit is contained in:
parent
04b5203a03
commit
9b8825b6f9
8
NEWS.md
8
NEWS.md
@ -108,6 +108,14 @@ Outstanding ones only.
|
|||||||
* Symbol#to_proc now returns a lambda Proc.
|
* Symbol#to_proc now returns a lambda Proc.
|
||||||
[[Feature #16260]]
|
[[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
|
## Stdlib updates
|
||||||
|
|
||||||
Outstanding ones only.
|
Outstanding ones only.
|
||||||
|
1
gc.rb
1
gc.rb
@ -26,6 +26,7 @@ module GC
|
|||||||
#
|
#
|
||||||
# Use full_mark: false to perform a minor GC.
|
# Use full_mark: false to perform a minor GC.
|
||||||
# Use immediate_sweep: false to defer sweeping (use lazy sweep).
|
# 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
|
# Note: These keyword arguments are implementation and version dependent. They
|
||||||
# are not guaranteed to be future-compatible, and may be ignored if the
|
# are not guaranteed to be future-compatible, and may be ignored if the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user