Hacker News new | ask | show | jobs
by flurrything 2823 days ago
How do Zig programmers using Linux or MacOS validate that their OOM handling is correct?
1 comments

There's an allocator in the standard library that is specifically designed to fail.

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