diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-05-29 15:59:14 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-05-29 15:59:42 -0700 |
commit | 9b8825b6f94696c9659f93f5da9bf02644625f67 (patch) | |
tree | 630aa0a8b3e96bbf51c585050dc5945bd56c4653 | |
parent | 04b5203a031d372b725e407519f10da6deda0e78 (diff) | |
download | ruby-9b8825b6f94696c9659f93f5da9bf02644625f67.tar.gz |
Update NEWS / documentation with GC.start(compact:true)
-rw-r--r-- | NEWS.md | 8 | ||||
-rw-r--r-- | gc.rb | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -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. @@ -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 |