summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2026-05-03 09:10:23 +0200
committerJean Boussier <jean.boussier@gmail.com>2026-05-03 11:36:26 +0200
commitc9b53473e37ec106cb77940b99f5ef0541758e92 (patch)
treee84df5a80d5fd0dabef3434c6a70329b236acee5 /object.c
parent87529e196135e9ce649f9f275061257d77896893 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 23a83c572e..18e9e070e4 100644
--- a/object.c
+++ b/object.c
@@ -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;