summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorlukeg <[email protected]>2023-01-25 07:45:19 -0500
committerJohn Hawthorn <[email protected]>2025-03-26 16:05:02 -0700
commitd80f3a287c5c8d0404b6cb837db360cab320cde1 (patch)
tree1d28140a404021294365ceb00d9a1e84562424ee /vm.c
parent2183899fd184ab1cfee80d57c0dd6f4dcd370375 (diff)
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12977
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index f5bb777b75..d31759724e 100644
--- a/vm.c
+++ b/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;
}