One can get rid of OOM just by adding a couple of lines to the default malloc, that call custom handler (similar to onOutOfMemoryError handler) wich does any magic wanted, so OOM doesn't break nothrow functions, and if it's thrown, this means that recovery code has failed to recover and application exits. So nothrow protocol remains the same.
- Re: Is "Out of Memory" a recoverable error? Robert Jacques
- Re: Is "Out of Memory" a recoverable error? Steven Schveighoffer
- Re: Is "Out of Memory" a recoverable e... Walter Bright
- Re: Is "Out of Memory" a recoverable error? Russell Lewis
- Re: Is "Out of Memory" a recoverable e... Jarrett Billingsley
- Re: Is "Out of Memory" a recoverable e... Sean Kelly
- Re: Is "Out of Memory" a recoverable e... Walter Bright
- Re: Is "Out of Memory" a recoverable e... BCS
- Re: Is "Out of Memory" a recoverable e... Leandro Lucarella
- Re: Is "Out of Memory" a recoverable error? Sean Kelly
- Re: Is "Out of Memory" a recoverable error? Kagamin
- Re: Is "Out of Memory" a recoverable error? Nick Sabalausky
- Re: Is "Out of Memory" a recoverable e... Walter Bright
- Re: Is "Out of Memory" a recoverable error? Leandro Lucarella
- Re: Is "Out of Memory" a recoverable e... Robert Jacques
- Re: Is "Out of Memory" a recoverab... Robert Fraser
- Re: Is "Out of Memory" a recov... Robert Jacques
- Re: Is "Out of Memory" a r... Walter Bright
- Re: Is "Out of Memory"... Sean Kelly