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: Call mprotect after entry stub failure #8582

Merged
merged 2 commits into from Oct 4, 2023

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Oct 3, 2023

When entry_stub_hit runs out of memory, it currently doesn't call mark_all_executable (after code_gc). It causes SEGV.

This PR fixes that issue by removing an early return and let the failure case go through the same flow and return at the end.

@matzbot matzbot requested a review from a team October 3, 2023 21:26
@k0kubun k0kubun force-pushed the yjit-entry-mark branch 2 times, most recently from 71ac83a to a704f1f Compare October 3, 2023 21:27
yjit/src/core.rs Outdated Show resolved Hide resolved
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
@k0kubun k0kubun merged commit 465bc68 into ruby:master Oct 4, 2023
94 checks passed
XrXr added a commit to XrXr/ruby that referenced this pull request Oct 4, 2023
Will need a rebase for integrating with master since:
 - ruby#8582
 - ruby#8583
k0kubun pushed a commit to k0kubun/ruby that referenced this pull request Oct 5, 2023
Will need a rebase for integrating with master since:
 - ruby#8582
 - ruby#8583
k0kubun added a commit to Shopify/ruby that referenced this pull request Oct 10, 2023
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants