summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean byroot Boussier <jean.boussier+github@shopify.com>2024-06-04 22:21:58 +0200
committerGitHub <noreply@github.com>2024-06-04 13:21:58 -0700
commit4f00d98b327e3aa23564aa765488d15bc60c9e79 (patch)
tree40fd378a201878c820cf4738ea66f66bee18a6b6 /shape.h
parentb74f669e2fbe5c63409878e7a9f9d39c8554ff77 (diff)
[3.3 backport] Do not emit shape transition warnings when YJIT is compiling (#10911)
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. Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'shape.h')
-rw-r--r--shape.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shape.h b/shape.h
index 4fc46b4525..5fee17ebd9 100644
--- a/shape.h
+++ b/shape.h
@@ -163,6 +163,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_get_next_no_warnings(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);