aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/cruby_bindings.inc.rs
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-03-15 13:43:49 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2023-03-15 15:45:20 -0400
commitde174681f7db3cc84ee8c55cafe89bb85a77e945 (patch)
tree98d3394c448380ee3180e97679de97de11ad9a3a /yjit/src/cruby_bindings.inc.rs
parentf613c18912f4bf5492a8dc02ab5e3661f4ae907c (diff)
downloadruby-de174681f7db3cc84ee8c55cafe89bb85a77e945.tar.gz
YJIT: Assert that we have the VM lock while marking
Somewhat important because having the lock is a key part of the soundness reasoning for the `unsafe` usage here.
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 190b163b41..19cea5e682 100644
--- a/yjit/src/cruby_bindings.inc.rs
+++ b/yjit/src/cruby_bindings.inc.rs
@@ -1333,4 +1333,5 @@ extern "C" {
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
);
+ pub fn rb_yjit_assert_holding_vm_lock();
}