Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZJIT: Stop loading an extra parameter #13719

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
Jun 26, 2025
Merged

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Jun 26, 2025

Follow-up on: #13529

This PR fixes gen_method_params() to avoid loading one extra parameter. While we added a new basic block argument, we didn't decrement num_params at gen_method_params(). As a result, even if an ISEQ has no argument, num_params becomes 1 and we load a parameter that doesn't exist.

Currently, many btests are failing on tool/fake.rb loaded by the bootstraptest runner because <main> assumes EP == BP for loading a first parameter that doesn't exist on <main>. So fixing this makes a lot more tests pass.

@matzbot matzbot requested a review from a team June 26, 2025 17:58
Copy link

Tests Failed

✖️no tests failed ✔️61818 tests passed(1 flake)

Copy link
Contributor

@tekknolagi tekknolagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great

@k0kubun k0kubun merged commit f8cd267 into ruby:master Jun 26, 2025
92 of 94 checks passed
@k0kubun k0kubun deleted the zjit-param-fix branch June 26, 2025 21:06
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.

2 participants