mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove rb_gc_start from cancel_single_ractor_mode
In 307732ccee
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:
parent
5eb3efcf2d
commit
137b51e4d3
Notes:
git
2025-04-03 17:40:04 +00:00
1 changed files with 0 additions and 8 deletions
8
ractor.c
8
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue