diff options
author | Jemma Issroff <[email protected]> | 2022-12-02 12:45:25 -0500 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-12-02 12:53:51 -0800 |
commit | ebd4c7bb01860735779e90fbaa53f7e4ab78ff6e (patch) | |
tree | 30b0525a7f7a1d1a81ab8d3478fb5c0a738f9b32 /yjit/src | |
parent | 4c5e89791b2e5e168aadb949c90f804736a472bd (diff) |
Fixed yjit bindings rb_gc_write_barrier
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6767
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/cruby_bindings.inc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; |