February 23, 2026
Ruby has traditionally shipped with a single, built-in garbage collector tightly coupled to the VM. With Ruby 3.4, that assumption begins to change.
Feature #20470 introduces an experimental Modular Garbage Collector API , allowing CRuby to load alternative GC implementations at runtime. This marks one of the most significant architectural shifts in Ruby’s memory management since the introduction of generational GC.
Instead of a fixed collector, Ruby is moving toward a future where garbage collection becomes a replaceable component.


Top comments (0)