mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Ractor.make_shareable(proc_obj) makes inner structure shareable
Proc objects are now traversed like other objects when making them shareable. Fixes [Bug #19372] Fixes [Bug #19374]
This commit is contained in:
parent
2183899fd1
commit
d80f3a287c
Notes:
git
2025-03-26 23:05:18 +00:00
3 changed files with 48 additions and 14 deletions
2
vm.c
2
vm.c
|
@ -1415,7 +1415,7 @@ rb_proc_ractor_make_shareable(VALUE self)
|
|||
proc->is_isolated = TRUE;
|
||||
}
|
||||
|
||||
FL_SET_RAW(self, RUBY_FL_SHAREABLE);
|
||||
rb_obj_freeze(self);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue