From ebd4c7bb01860735779e90fbaa53f7e4ab78ff6e Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Fri, 2 Dec 2022 12:45:25 -0500 Subject: [PATCH] Fixed yjit bindings rb_gc_write_barrier --- yjit/src/cruby_bindings.inc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index 6f99a4441d..9d9074e123 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -247,6 +247,9 @@ pub type st_foreach_callback_func = ::std::option::Option< arg3: st_data_t, ) -> ::std::os::raw::c_int, >; +extern "C" { + pub fn rb_gc_writebarrier(old: VALUE, young: VALUE); +} pub const RARRAY_EMBED_FLAG: ruby_rarray_flags = 8192; pub const RARRAY_EMBED_LEN_MASK: ruby_rarray_flags = 4161536; pub const RARRAY_TRANSIENT_FLAG: ruby_rarray_flags = 33554432;