3 ms·
Most applications just exit when malloc() returns NULL, but in a more graceful way than crashing. Only critical applications (not a toy vm) need to handle OOM
by alcuadrado 15y ago
Most applications just exit when malloc() returns NULL, but in a more graceful way than crashing.
Only critical applications (not a toy vm) need to handle OOM errors, and that's something incredible hard to achieve.
BTW: All the code is a kind of crappy.