From 137b51e4d3dff93e0101f776ac05af63aca9b778 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 2 Apr 2025 12:03:44 -0700 Subject: [PATCH] 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. --- ractor.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ractor.c b/ractor.c index 46390a1749..d8a22c0927 100644 --- a/ractor.c +++ b/ractor.c @@ -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); }