Reuse rb_ractor_make_shareable function for rb_ractor_make_shareable_copy function
This commit is contained in:
parent
abfac2222b
commit
092c9b266a
Notes:
git
2023-07-10 10:06:37 +00:00
5
ractor.c
5
ractor.c
@ -2925,10 +2925,7 @@ VALUE
|
|||||||
rb_ractor_make_shareable_copy(VALUE obj)
|
rb_ractor_make_shareable_copy(VALUE obj)
|
||||||
{
|
{
|
||||||
VALUE copy = ractor_copy(obj);
|
VALUE copy = ractor_copy(obj);
|
||||||
rb_obj_traverse(copy,
|
return rb_ractor_make_shareable(copy);
|
||||||
make_shareable_check_shareable,
|
|
||||||
null_leave, mark_shareable);
|
|
||||||
return copy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user