aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/cruby_bindings.inc.rs
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-06-06 10:21:29 -0400
committerGitHub <noreply@github.com>2023-06-06 10:21:29 -0400
commit2b54c135ff3ae2fb362a5efaa542ec9236116add (patch)
tree70b9cd6a1c282754da5a3cf82dd6a30d08eb76e8 /yjit/src/cruby_bindings.inc.rs
parent7577c101ed6452de3e72fadb43db595946acc701 (diff)
downloadruby-2b54c135ff3ae2fb362a5efaa542ec9236116add.tar.gz
YJIT: Avoid identity-based known-class guards for IO objects (#7911)
`IO#reopen` is very special in that it is able to change the class and singleton class of IO instances. In its presence, it is not correct to assume that IO instances has a stable class/singleton class and guard by comparing identity.
Diffstat (limited to 'yjit/src/cruby_bindings.inc.rs')
-rw-r--r--yjit/src/cruby_bindings.inc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs
index 8415b444ba..1f549161ca 100644
--- a/yjit/src/cruby_bindings.inc.rs
+++ b/yjit/src/cruby_bindings.inc.rs
@@ -1083,6 +1083,7 @@ extern "C" {
pub static mut rb_cFalseClass: VALUE;
pub static mut rb_cFloat: VALUE;
pub static mut rb_cHash: VALUE;
+ pub static mut rb_cIO: VALUE;
pub static mut rb_cInteger: VALUE;
pub static mut rb_cModule: VALUE;
pub static mut rb_cNilClass: VALUE;