Skip to content

Commit 4225c9e

Browse files
committed
Duplicate class shape_id
1 parent f88aada commit 4225c9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

variable.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4809,7 +4809,9 @@ class_atomic_ivar_set(VALUE obj, ID id, VALUE val)
48094809
VALUE *fields = rb_imemo_obj_fields_ptr(fields_obj);
48104810
RB_OBJ_WRITE(obj, &fields[index], val);
48114811
if (!existing) {
4812+
// TODO: save duplicating the shape_id
48124813
rb_shape_set_shape_id(fields_obj, next_shape_id);
4814+
rb_shape_set_shape_id(obj, next_shape_id);
48134815
}
48144816

48154817
if (fields_obj != original_fields_obj) {

0 commit comments

Comments
 (0)