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 ruby 3.2.x support #64

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Add ruby 3.2.x support #64

merged 3 commits into from
Feb 22, 2023

Conversation

javierhonduco
Copy link
Owner

No description provided.

@javierhonduco javierhonduco changed the title Add ruby 3 2 x support Add ruby 3.2.x support Feb 22, 2023
Variable Width Allocation https://bugs.ruby-lang.org/issues/18239
changes the layout of strings in Ruby.

The new layout for embedded strings:

```
/*                    16 */        struct {
/*     16      |       8 */            long len;
/*     24      |       1 */            char ary[1];
/* XXX  7-byte padding   */

                                       /* total size (bytes):   16 */
                                   } embed;
```

We need to account for the length, that was not present as its own field
before.

Signed-off-by: Francisco Javier Honduvilla Coto <javierhonduco@gmail.com>
@javierhonduco
Copy link
Owner Author

@manuelfelipe Happy to merge if you are happy with this. If you prefer to cut the PR that's totally fine too :)

@manuelfelipe
Copy link
Contributor

no need for the PR. feel free to merge whenever you are able to. Thanks again for the help and insights!

@javierhonduco javierhonduco marked this pull request as ready for review February 22, 2023 18:01
@javierhonduco javierhonduco merged commit a6b316e into main Feb 22, 2023
@javierhonduco javierhonduco deleted the add-ruby-3-2-x-support branch February 22, 2023 18:01
@javierhonduco
Copy link
Owner Author

Thanks!! :)

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.

None yet

2 participants