Skip to content

Commit

Permalink
YJIT: Correct signature of rb_yjit_root_mark()
Browse files Browse the repository at this point in the history
Even though unused, it's supposed to take a pointer like the C side
expects.
  • Loading branch information
XrXr committed Apr 27, 2024
1 parent bc6bf0a commit 6353d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yjit/src/invariants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6353d03

Please sign in to comment.