summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2025-04-02 12:03:44 -0700
committerJohn Hawthorn <[email protected]>2025-04-03 10:39:47 -0700
commit137b51e4d3dff93e0101f776ac05af63aca9b778 (patch)
tree121e92f61242784184967fca5fb5487f85fc192d /ractor.c
parent5eb3efcf2de300e4ad1d3ce5de8ea756063b9a28 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13047
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c8
1 files changed, 0 insertions, 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);
}