Skip to content

Commit 3d74202

Browse files
committed
Fix rb_free_generic_ivar to reset shape
1 parent 77cf232 commit 3d74202

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

variable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ rb_free_generic_ivar(VALUE obj)
12351235

12361236
RB_VM_LOCKING() {
12371237
st_delete(generic_fields_tbl_no_ractor_check(), &key, &value);
1238+
RBASIC_SET_SHAPE_ID(obj, ROOT_SHAPE_ID);
12381239
}
12391240
}
12401241
}

0 commit comments

Comments
 (0)