diff options
author | Alan Wu <[email protected]> | 2023-03-15 13:43:49 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2023-03-15 15:45:20 -0400 |
commit | de174681f7db3cc84ee8c55cafe89bb85a77e945 (patch) | |
tree | 98d3394c448380ee3180e97679de97de11ad9a3a /yjit/bindgen | |
parent | f613c18912f4bf5492a8dc02ab5e3661f4ae907c (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7530
Diffstat (limited to 'yjit/bindgen')
-rw-r--r-- | yjit/bindgen/src/main.rs | 2 |
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") |