Project

General

Profile

Actions

Bug #21022

closed

The --with-modular-gc= option is cumbersome

Added by vo.x (Vit Ondruch) 7 days ago. Updated 6 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM +GC [x86_64-linux]
[ruby-core:120584]

Description

Just experimenting a bit with the --with-modular-gc= if it is worth of enabling in Fedora, but I somehow cannot wrap my head around that. What is the intended configuration?

From Fedora POV, we have Ruby installed somewhere in /usr, which can only be managed by RPM. I don't think that we would like to package any additional GC. But if we wanted, we would likely installed it outside of the default Ruby directory structure. We would also like our users to experiment. So they would ideally have their GC built somewhere in their HOME. In that case, I'd expect that something like RUBY_GC_LIBRARY=/home/johndoe/path/to/gc/gc.so ruby -e 'puts "Hello custom GC"' would be command to run. But it does not seems that the current configuration option / env variables have anything like this in their mind.

Actually I wonder why the GC is not packaged as gem? Maybe RubyGems are late to the party to load the GC early enough. But they still would be nice method of distribution.

From #20860 I understand that the MMTk is experimental. But from the Ruby 3.4, the Modular GC seems to be as something users might want.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like1Like0