You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YJIT: ZJIT: Abort faster when OOM in rb_jit_reserve_addr_space
Previously, the loop condition checked the wrong direction so required
wrapping around the address space to break out the loop. It takes
a few seconds to do a few million mmap calls then loop around and then crash.
A way to test this is by experimenting with different values of `ulimit -v`.
Try 400,000 and up.
Explicitly bound the loop. Also rotate the loop so we don't waste
the first probe which was done with a mapped address.
Fixes: b215a35
0 commit comments