4 ms·
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 an
by 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 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...