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

YJIT: Optimize local variables when EP == BP (take 2) #10607

Merged
merged 2 commits into from Apr 25, 2024

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Apr 23, 2024

This reverts the revert of #10487.

Alan discovered that we don't mark ISEQs in no_ep_escape_iseqs, which can lead to missing invalidation and code generation with a wrong assumption after GC.compact. This PR fixes the problem by updating ISEQ references on rb_yjit_iseq_update_references. It also frees ISEQ keys on rb_yjit_iseq_free.

@k0kubun k0kubun force-pushed the yjit-ep-bp branch 2 times, most recently from 4ce01ec to ac61272 Compare April 25, 2024 08:23
@k0kubun k0kubun changed the title Revert "Revert "YJIT: Optimize local variables when EP == BP" (#10584)" YJIT: Optimize local variables when EP == BP (take 2) Apr 25, 2024
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
@k0kubun k0kubun marked this pull request as ready for review April 25, 2024 13:56
@matzbot matzbot requested a review from a team April 25, 2024 13:56
@maximecb maximecb merged commit 7ab1a60 into ruby:master Apr 25, 2024
101 checks passed
artur-intech pushed a commit to artur-intech/ruby that referenced this pull request Apr 26, 2024
* Revert "Revert "YJIT: Optimize local variables when EP == BP" (ruby#10584)"

This reverts commit c878344.

* YJIT: Take care of GC references in ISEQ invariants

Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>

---------

Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants