[common/host_memory] use assert instead of throw on Impl() ctor; abort on error #316
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "assertInsteadOfThrow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
0b034f8064
to9ed17b2be3