On Sun 11/29/2026 10:00 PM, Lawrence D’Oliveiro wrote:
> So you don’t even need to bother to check for memory-allocation
> failures, because you will never get a failure status.
Well, firstly, overcommit approach simply substitutes "virtual address space" in place of "actual memory" as the limited resource. And while address space is usually huge, one can still exhaust it if one really sets their mind to it. This can still lead to an allocation failure.
Secondly, there's still the implementation-dependent limit for the largest continuous block in a single allocation, which can also lead to an allocation failure.
--
Best regards,
Andrey