Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
flurrything
· 8y ago · 0 comments
What do these Zig functions do in systems with overcommit ? (that is, Linux, MacOS, *BSDs, Android, iOS, ...).
Comments
[–]
AnIdiotOnTheNet
8y 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.
[–]
flurrything
OP
8y ago
How do Zig programmers using Linux or MacOS validate that their OOM handling is correct?
[–]
AnIdiotOnTheNet
8y ago
There's an allocator in the standard library that is specifically designed to fail.
https://github.com/ziglang/zig/blob/master/std/debug/failing...