Skip to content

ZJIT: Set PC before function_stub_hit_body #14234

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 15, 2025
Merged

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Aug 14, 2025

This PR lets function_stub_hit set PC before calling function_stub_hit_body, instead of doing it only before exit.

optimize_direct_sends in ZJIT allocates cme, which triggers gc_validate_pc for RUBY_DEBUG build. So we need to have a correct PC before compiling an ISEQ.

@k0kubun k0kubun marked this pull request as ready for review August 14, 2025 23:22
@matzbot matzbot requested a review from a team August 14, 2025 23:22
Copy link

launchable-app bot commented Aug 14, 2025

Tests Failed

✖️no tests failed ✔️62279 tests passed(2 flakes)

@k0kubun k0kubun merged commit 8f7e7bf into ruby:master Aug 15, 2025
84 of 88 checks passed
@k0kubun k0kubun deleted the zjit-fix-pc branch August 15, 2025 16:05
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