summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2024-06-04 17:27:29 +0200
committerJean Boussier <[email protected]>2024-06-04 19:21:01 +0200
commitf7b53a75b648e7156f49c1d5c266e2d85f159fc6 ()
treeefa01c825057ff34b8f5c5e5e3b365be7aa475e5 /shape.h
parent86272257047aeac65ae0a5af100093e39c2ee00a (diff)
Do not emit shape transition warnings when YJIT is compiling
[Bug #20522] If `Warning.warn` is redefined in Ruby, emitting a warning would invoke Ruby code, which can't safely be done when YJIT is compiling.
-rw-r--r--shape.h1
1 files changed, 1 insertions, 0 deletions
@@ -164,6 +164,7 @@ int rb_shape_frozen_shape_p(rb_shape_t* shape);
rb_shape_t* rb_shape_transition_shape_frozen(VALUE obj);
bool rb_shape_transition_shape_remove_ivar(VALUE obj, ID id, rb_shape_t *shape, VALUE * removed);
rb_shape_t* rb_shape_get_next(rb_shape_t* shape, VALUE obj, ID id);
rb_shape_t * rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape);