Skip to content

variable.c: handle cleared fields_obj in genfields cache #14291

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
Aug 21, 2025

Conversation

byroot
Copy link
Member

@byroot byroot commented Aug 21, 2025

[Bug #21547]

Followup: #14201

When adding an instance variable and the IMEMO/fields need to be larger, we allocate a new one and clear the old one.

Since the old one may still be in other ec's cache, on a hit we must check the IMEMO/fields isn't a stale one.

[Bug #21547]

Followup: ruby#14201

When adding an instance variable and the IMEMO/fields need to be
larger, we allocate a new one and clear the old one.

Since the old one may still be in other ec's cache, on a hit we must
check the IMEMO/fields isn't a stale one.
@byroot byroot merged commit b6bf44a into ruby:master Aug 21, 2025
85 checks passed
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