Skip to content

Ractor: revert to moving object bytes, but size pool aware #13070

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

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

casperisfine
Copy link
Contributor

Using rb_obj_clone introduce other problems, such as initialize_* callbacks invocation in the context of the parent ractor.

So we can revert back to copy the content of the object slots, but in a way that is aware of size pools.

Followup: #13008

@casperisfine casperisfine force-pushed the ractor-move-size-aware branch from 8b7e497 to b56e670 Compare April 4, 2025 11:40

This comment has been minimized.

@casperisfine casperisfine force-pushed the ractor-move-size-aware branch 2 times, most recently from ece4b7c to dbe2403 Compare April 4, 2025 12:53
Using `rb_obj_clone` introduce other problems, such as `initialize_*`
callbacks invocation in the context of the parent ractor.

So we can revert back to copy the content of the object slots,
but in a way that is aware of size pools.
@casperisfine casperisfine force-pushed the ractor-move-size-aware branch from dbe2403 to e44d113 Compare April 4, 2025 13:32
@byroot byroot merged commit 085cc6e into ruby:master Apr 4, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants