diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-11-19 18:02:26 -0500 |
|---|---|---|
| committer | Alan Wu <alanwu@ruby-lang.org> | 2024-11-20 10:06:14 -0500 |
| commit | 199877d2583a5c4b9553b9c197aca39b46ba77e6 (patch) | |
| tree | 94eaa38333663547e98d0608ca484777b444226e /include/ruby/random.h | |
| parent | 2df2e868bc21e39ac493cebac1c981f1ed279010 (diff) | |
YJIT: Abandon block when gen_outlined_exit() fails
When CodeBlock::set_page fails (part of next_page(), see their docs for
exact conditions), it can cause gen_outlined_exit() to fail while there
is still plenty of memory available. Previously, this can have YJIT
running incomplete code due to taking the early return in
end_block_with_jump() that manifested as crashes with SIGILL.
Add and use a wrapper with error handling.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12124
Diffstat (limited to 'include/ruby/random.h')
0 files changed, 0 insertions, 0 deletions
