[common/host_memory] use assert instead of throw on Impl() ctor; abort on error #316

Merged
crueter merged 1 commit from assertInsteadOfThrow into master 2025-08-27 22:26:09 +02:00
Member

Rationale: Throwing when running out of memory just creates sad paths for no reason (and at that point, just abort immediately). We are using MAP_NORESERVE, if there isn't enough memory a crash will follow anyways.

Signed-off-by: lizzie lizzie@eden-emu.dev

Rationale: Throwing when running out of memory just creates sad paths for no reason (and at that point, just abort immediately). We are using MAP_NORESERVE, if there isn't enough memory a crash will follow anyways. Signed-off-by: lizzie <lizzie@eden-emu.dev>
Lizzie force-pushed assertInsteadOfThrow from 0b034f8064 to 9ed17b2be3 2025-08-27 21:34:48 +02:00 Compare
crueter approved these changes 2025-08-27 21:35:36 +02:00
crueter merged commit 7950c5cca0 into master 2025-08-27 22:26:09 +02:00
crueter deleted branch assertInsteadOfThrow 2025-08-27 22:26:09 +02:00
Sign in to join this conversation.
No description provided.