diff options
author | John Hawthorn <[email protected]> | 2025-04-02 12:03:44 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2025-04-03 10:39:47 -0700 |
commit | 137b51e4d3dff93e0101f776ac05af63aca9b778 (patch) | |
tree | 121e92f61242784184967fca5fb5487f85fc192d | |
parent | 5eb3efcf2de300e4ad1d3ce5de8ea756063b9a28 (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
-rw-r--r-- | ractor.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); } |