Skip to content

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)

Alias of GC.start