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: A64: Remove assert that trips when OOM at page boundary #12668

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Jan 29, 2025

With a well-timed OOM around a page switch in the backend, it can return RetryOnNextPage twice and crash due to the assert. (More places can signal OOM now since VirtualMem tracks Rust malloc heap size for --yjit-mem-size.)

Return error in these cases instead of crashing.

Fixes: Shopify#566

With a well-timed OOM around a page switch in the backend, it can return
RetryOnNextPage twice and crash due to the assert. (More places can
signal OOM now since VirtualMem tracks Rust malloc heap size for
--yjit-mem-size.)

Return error in these cases instead of crashing.

Fixes: Shopify#566
@matzbot matzbot requested a review from a team January 29, 2025 20:23
Copy link
Contributor

@maximecb maximecb left a comment

Choose a reason for hiding this comment

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

Ty Alan

@XrXr XrXr merged commit 5a7089f into ruby:master Jan 30, 2025
77 of 78 checks passed
@XrXr XrXr deleted the yjit-double-retry branch January 30, 2025 00:09
@kevin-sellers
Copy link

Wonderful turnaround time on this! I can confirm that this does indeed fix the issue we were seeing.

@maximecb
Copy link
Contributor

Alan saves our butt once again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

YJIT crash on arm64 (Ruby 3.4.1)
3 participants