mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
In single-ractor mode, we don't want foreign_object_p checks to actually run (there can be no foreign objspaces). This foreign_object_p check return false if there was never a (non-main) Ractor created. Previously, rb_gc_ever_multi_ractor_p() was needlessly complex. This change should speed up marking and WB implementations in single-ractor mode.