summaryrefslogtreecommitdiff
path: root/yjit/bindgen
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/bindgen
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/bindgen')
-rw-r--r--yjit/bindgen/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs
index bf762c1401..3dc503f7c3 100644
--- a/yjit/bindgen/src/main.rs
+++ b/yjit/bindgen/src/main.rs
@@ -320,6 +320,8 @@ fn main() {
.allowlist_function("rb_yjit_exit_locations_dict")
.allowlist_function("rb_yjit_icache_invalidate")
.allowlist_function("rb_optimized_call")
+ .allowlist_function("rb_yjit_assert_holding_vm_lock")
+
// from vm_sync.h
.allowlist_function("rb_vm_barrier")