3 ms·
> In practice i haven't seen any application to gracefully handle out of memory situations I have seen code hit an allocation failure, bubble the error up the
by asveikau 7y ago
> In practice i haven't seen any application to gracefully handle out of memory situations
I have seen code hit an allocation failure, bubble the error up the stack, which causes various pieces of code along the stack to free their heap allocations, all the while the process is able to log what is going and keep running.
I have even seen this happen when the allocation that failed was tiny, less than 100 bytes.