Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stable API for Ruby 3.4 #452

Merged
merged 5 commits into from
Nov 21, 2024
Merged

Add stable API for Ruby 3.4 #452

merged 5 commits into from
Nov 21, 2024

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