6 ms·
On a 32bit process that is easily achieved and also if the virtual memory has been fragmented. I've encountered many situations where malloc will return null i
by tjoff 8y ago
On a 32bit process that is easily achieved and also if the virtual memory has been fragmented.
I've encountered many situations where malloc will return null in real world applications. Some of which we really wanted to handle that scenario and fail gracefully or continue with less memory usage (and thus less performance).