diff options
author | Alan Wu <[email protected]> | 2024-04-26 20:12:45 -0400 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2024-04-26 18:03:26 -0700 |
commit | 2ba7c1b142f85a11e11b4861079f3df0f456ab3a (patch) | |
tree | 6a8c26b86c0e8fd1075246636854710d5450c9d7 /yjit/src | |
parent | 83c03cc73a30d27f8b35f2d08ba763353bf8e18f (diff) |
YJIT: Correct signature of rb_yjit_root_mark()
Even though unused, it's supposed to take a pointer like the C side
expects.
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/invariants.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/invariants.rs b/yjit/src/invariants.rs index 4814e7a1c7..f32d51131d 100644 --- a/yjit/src/invariants.rs +++ b/yjit/src/invariants.rs @@ -348,7 +348,7 @@ pub extern "C" fn rb_yjit_constant_state_changed(id: ID) { /// Callback for marking GC objects inside [Invariants]. /// See `struct yjijt_root_struct` in C. #[no_mangle] -pub extern "C" fn rb_yjit_root_mark() { +pub extern "C" fn rb_yjit_root_mark(_: *mut c_void) { // Call rb_gc_mark on exit location's raw_samples to // wrap frames in a GC allocated object. This needs to be called // at the same time as root mark. |