Skip to content

Conversation

ianks
Copy link
Collaborator

@ianks ianks commented Nov 21, 2024

This PR adds a stable API implementation for Ruby 3.4. It is exactly the same as Ruby 3.3, since there were not incompatible changes in this release cycle for the methods we support.

@@ -141,6 +142,9 @@ pub unsafe fn setup_ruby_unguarded() {
rb_sys::rb_w32_sysinit(&mut argc, &mut argv);
}

let mut stack_marker: VALUE = 0;
ruby_init_stack(addr_of_mut!(stack_marker) as *mut _);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was causing GC issues in Ruby 3.4, due to Ruby being unable to mark objects on the machine stack. Not sure why this wasn't an issue before, but now it's fixed.

@ianks ianks merged commit 9013c95 into main Nov 21, 2024
56 checks passed
@ianks ianks deleted the ruby-3-4-stable branch November 21, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant