From de174681f7db3cc84ee8c55cafe89bb85a77e945 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 15 Mar 2023 13:43:49 -0400 Subject: 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. --- yjit/bindgen/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yjit/bindgen') 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") -- cgit v1.2.1