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

Remove RCLASS(obj)->ptr when RVARGC is enabled #5101

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

eightbitraptor
Copy link
Contributor

With RVARGC we always store the rb_classext_t in the same slot as the
RClass struct that refers to it. So we don't need to store the pointer
or access through the pointer anymore and can switch the RCLASS_EXT
macro to use an offset

With RVARGC we always store the rb_classext_t in the same slot as the
RClass struct that refers to it. So we don't need to store the pointer
or access through the pointer anymore and can switch the RCLASS_EXT
macro to use an offset
@eightbitraptor eightbitraptor marked this pull request as ready for review November 11, 2021 16:47
@peterzhu2118 peterzhu2118 merged commit a9a9454 into ruby:master Nov 11, 2021
@peterzhu2118 peterzhu2118 deleted the mvh-offset-classext branch November 11, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants