954094a910 (master): Take VM Lock during rb_gc_{un}register_address (#16097)

0 views
Skip to first unread message

Luke Gruber

unread,
Feb 6, 2026, 4:09:26 PM (2 days ago) Feb 6
to ruby...@g.ruby-lang.org
Luke Gruber 2026-02-06 21:08:57 +0000 (Fri, 06 Feb 2026)

New Revision: 954094a910

https://github.com/ruby/ruby/commit/954094a910

Log:
Take VM Lock during rb_gc_{un}register_address (#16097)

The `Rice` C++ library uses an Anchor class that uses RAII to call
`rb_gc_register_address`, `rb_gc_unregister_address` during init+destruct.
It's unclear if this API is meant to be used at runtime like this, but we can
at least lock the VM so it works safely across Ractors and doesn't mangle the
`global_object_list` table.

Modified files:
gc.c
Reply all
Reply to author
Forward
0 new messages