Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a new Garbage collector built using the new GC API introduced in https://bugs.ruby-lang.org/issues/20470
It's modelled on the Epsilon collector introduced in JDK 11. A No-Op collector that implements memory allocation but no memory reclamation. Memory will continue to be allocated until the process exhausts all available memory and is shut down by the OS's OOM killer.
This GC has the lowest possible GC latency, at the expense of memory footprint and throughput.
This is primarily useful for experimentation and testing, and provides a "second system" in order to continue testing the GC API.
This collector uses the same heap/page/slot allocation strategy as Ruby's existing GC. This was done for a few reasons:
The epsilon collection can be built as a shared library as follows:
Mac:
Linux:
Ruby must be built with shared GC support, and the correct library directory set in the configure path.
Then, the EpsilonGC can be loaded at runtime using the RUBY_GC_LIBRARY environment variable