Remove rb_gc_start from cancel_single_ractor_mode

In 307732ccee7f9f28f8422bab2f839da021d8cdec Ractors were changed to
explicitly run GC when the first non-main one was activated in order to
disable the transient heap. Theap no longer exists so I don't think we
need to do this.
This commit is contained in:
John Hawthorn 2025-04-02 12:03:44 -07:00 committed by John Hawthorn
parent 5eb3efcf2d
commit 137b51e4d3
Notes: git 2025-04-03 17:40:04 +00:00

View File

@ -1980,14 +1980,6 @@ cancel_single_ractor_mode(void)
// enable multi-ractor mode
RUBY_DEBUG_LOG("enable multi-ractor mode");
VALUE was_disabled = rb_gc_enable();
rb_gc_start();
if (was_disabled) {
rb_gc_disable();
}
ruby_single_main_ractor = NULL;
rb_funcall(rb_cRactor, rb_intern("_activated"), 0);
}