Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
GC#garbage_collect
(?immediate_sweep: ::boolish immediate_sweep, ?immediate_mark: ::boolish immediate_mark, ?full_mark: ::boolish full_mark) -> nil
garbage_collect(full_mark: true, immediate_mark: true, immediate_sweep: true, global: true)
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/gc.rb, line 69
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true, global: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false, global
end
Alias of GC.start
See also
.verify_internal_consistency
.verify_compaction_references
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0