Reuse rb_ractor_make_shareable function for rb_ractor_make_shareable_copy function

This commit is contained in:
S-H-GAMELINKS 2023-07-10 12:10:05 +09:00 committed by Nobuyoshi Nakada
parent abfac2222b
commit 092c9b266a
Notes: git 2023-07-10 10:06:37 +00:00

View File

@ -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