[Development] QtCore missing check for memory allocation

Thiago Macieira thiago.macieira at intel.com
Wed Feb 25 17:38:21 CET 2015


On Wednesday 25 February 2015 17:20:54 Christian Kandeler wrote:
> Also, you are not even guaranteed to get a null pointer/bad_alloc due to 
> things like Linux overcommitting.

Which is one of the reasons why we don't check for malloc failures. Modern 
memory allocators with overcommitting and OOM killers mean that it's very hard 
to track down actual OOM situations.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list