Hacker News new | ask | show | jobs
by AnIdiotOnTheNet 2826 days ago
Same thing as everyone else: play russian roulette with the OOM-killer and hope that whatever was important to the user didn't get destroyed. Can't really do anything about the OS lying to you.
1 comments

How do Zig programmers using Linux or MacOS validate that their OOM handling is correct?
There's an allocator in the standard library that is specifically designed to fail.

https://github.com/ziglang/zig/blob/master/std/debug/failing...