4 ms·
What do these Zig functions do in systems with overcommit ? (that is, Linux, MacOS, *BSDs, Android, iOS, ...).
by flurrything 8y ago
What do these Zig functions do in systems with overcommit ? (that is, Linux, MacOS, *BSDs, Android, iOS, ...).
- AnIdiotOnTheNet 8y agoSame 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 8y agoHow do Zig programmers using Linux or MacOS validate that their OOM handling is correct?
- AnIdiotOnTheNet 8y agoThere's an allocator in the standard library that is specifically designed to fail. https://github.com/ziglang/zig/blob/master/std/debug/failing_allocator.zig https://github.com/ziglang/zig/blob/master/std/debug/failing...