Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
ObjectSpace#garbage_collect
(?full_mark: bool, ?immediate_mark: bool, ?immediate_sweep: bool) -> void
garbage_collect(full_mark: true, immediate_mark: true, immediate_sweep: true)
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/gc.rb, line 395
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end
Alias of GC.start