diff options
author | Alan Wu <[email protected]> | 2025-01-29 14:59:26 -0500 |
---|---|---|
committer | Alan Wu <[email protected]> | 2025-01-29 19:09:39 -0500 |
commit | 5a7089fc03fb77da6f0f6c005a9a0ef655660cff (patch) | |
tree | 870846bc76bab6b970a5406513bacb6375961fce /yjit/src/backend/x86_64 | |
parent | de45755de803577f0a5593623c162384affa36f1 (diff) |
YJIT: A64: Remove assert that trips when OOM at page boundary
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: https://github.com/Shopify/ruby/issues/566
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12668
Diffstat (limited to 'yjit/src/backend/x86_64')
0 files changed, 0 insertions, 0 deletions