Do not try to handle OOM exceptions in logging
authorKai Koehne <kai.koehne@digia.com>
Wed, 4 Jun 2014 10:10:24 +0000 (12:10 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 6 Jun 2014 07:31:59 +0000 (09:31 +0200)
commit7cbd9cffd3b6f367fc71adb26428a59502d09885
tree5d8cf134412cc4fe7a0d4587c1907bf1254bb638
parent9e01483cdfff068517e29c674e0332818e76cb21
Do not try to handle OOM exceptions in logging

We duplicate quite some code here in an attempt to still print
messages, even in OOM situations. However, we've in general given up
on handling OOM exceptions gracefully in Qt: On modern systems
you hardly reach the point of not being able to allocate (smaller)
chunks in the first place, since the system will usually overcommit,
or bring the system to halt by heavy paging.

In 7cafb62538661863e5c we removed already similar logic in QDebug
class.

Change-Id: I4f84641c41c5e230a60dc0b7a5b0a13dec20f90f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qlogging.cpp