Skip to content

Commit 137b51e

Browse files
committed
Remove rb_gc_start from cancel_single_ractor_mode
In 307732c 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.
1 parent 5eb3efc commit 137b51e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ractor.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,14 +1980,6 @@ cancel_single_ractor_mode(void)
19801980
// enable multi-ractor mode
19811981
RUBY_DEBUG_LOG("enable multi-ractor mode");
19821982

1983-
VALUE was_disabled = rb_gc_enable();
1984-
1985-
rb_gc_start();
1986-
1987-
if (was_disabled) {
1988-
rb_gc_disable();
1989-
}
1990-
19911983
ruby_single_main_ractor = NULL;
19921984
rb_funcall(rb_cRactor, rb_intern("_activated"), 0);
19931985
}

0 commit comments

Comments
 (0)