diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2026-05-03 09:10:23 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2026-05-03 11:36:26 +0200 |
| commit | c9b53473e37ec106cb77940b99f5ef0541758e92 (patch) | |
| tree | e84df5a80d5fd0dabef3434c6a70329b236acee5 /object.c | |
| parent | 87529e196135e9ce649f9f275061257d77896893 (diff) | |
Refactor shape transition functions
Expose both `rb_obj_shape_` functions that take a `VALUE`
and `rb_shape_` functions that take a `shape_id`.
Make common transition functions such as `complex` and `frozen`
inlineable.
Also get rid of RB_SET_SHAPE_ID and rb_set_boxed_class_shape_id.
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -501,7 +501,7 @@ rb_obj_clone_setup(VALUE obj, VALUE clone, VALUE kwfreeze) } if (RB_OBJ_FROZEN(obj)) { - shape_id_t next_shape_id = rb_shape_transition_frozen(clone); + shape_id_t next_shape_id = rb_obj_shape_transition_frozen(clone); RBASIC_SET_SHAPE_ID(clone, next_shape_id); } break; |
