8000 Update NEWS / documentation with GC.start(compact:true) · github/ruby@9b8825b · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b8825b

Browse files
committed
Update NEWS / documentation with GC.start(compact:true)
1 parent 04b5203 commit 9b8825b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ Outstanding ones only.
108108
* Symbol#to_proc now returns a lambda Proc.
109109
[[Feature #16260]]
110110

111+
* GC
112+
113+
* Modified method
114+
115+
* GC.start now takes an option `compact: true` to compact the heap.
116+
For example `GC.start(compact: true)` will have the same effect as
117+
`GC.compact`.
118+
111119
## Stdlib updates
112120

113121
Outstanding ones only.

gc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module GC
2626
#
2727
# Use full_mark: false to perform a minor GC.
2828
# Use immediate_sweep: false to defer sweeping (use lazy sweep).
29+
# Use compact: true to compact the heap (it implies a full mark and sweep).
2930
#
3031
# Note: These keyword arguments are implementation and version dependent. They
3132
# are not guaranteed to be future-compatible, and may be ignored if the

0 commit comments

Comments
 (0)
0