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

MJIT: Check if self is T_OBJECT before opt_pc jump #7774

Merged
merged 1 commit into from Jun 2, 2023

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Apr 30, 2023

This is a patch for ruby_3_2 branch.

The opt_pc jump wrongly skips the T_OBJECT check for ivars, so instance variables are broken for non-T_OBJECT objects when the method has optional arguments. This PR fixes it by checking T_OBJECT first.

[Bug #19623]

@k0kubun k0kubun requested a review from nurse April 30, 2023 07:50
@nagachika nagachika merged commit 60d75a5 into ruby:ruby_3_2 Jun 2, 2023
88 of 90 checks passed
@k0kubun k0kubun deleted the mjit-ivar branch June 2, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants