diff options
author | Luke Gruber <[email protected]> | 2023-12-29 13:06:58 -0500 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2024-01-02 08:10:59 +0900 |
commit | 32c4b0125f9afe11909d1c10e4133e20180e809e (patch) | |
tree | 492a2ab15c091a401c5c57c2906e5e3bd1d10bc7 /ractor.c | |
parent | e12d4c654e3cb7a4473014610bc3bae41aaf811e (diff) |
Set Ractor moved object's shape to original object's shape
Fixes [Bug #19409]
Diffstat (limited to 'ractor.c')
-rw-r--r-- | ractor.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3504,7 +3504,9 @@ move_enter(VALUE obj, struct obj_traverse_replace_data *data) return traverse_skip; } else { - data->replacement = rb_obj_alloc(RBASIC_CLASS(obj)); + VALUE moved = rb_obj_alloc(RBASIC_CLASS(obj)); + rb_shape_set_shape(moved, rb_shape_get_shape(obj)); + data->replacement = moved; return traverse_cont; } } |