dbus-memory: add optional checking for system malloc() (etc.) failing
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 23 Jun 2011 10:43:33 +0000 (11:43 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 21 Feb 2012 15:08:30 +0000 (15:08 +0000)
commit674983689c75a98357823a64d10b14589c1c8349
tree22fba077854f21021a05284292c01f76a5d67991
parent1d89cad3436f9d7185798d27bc9b9211044b987c
dbus-memory: add optional checking for system malloc() (etc.) failing

If tests are enabled and DBUS_MALLOC_CANNOT_FAIL is set, abort on system
malloc() failures (as GLib's g_malloc does). This can be used in
conjunction with a resource limit, to turn runaway memory leaks into a
debuggable core-dump.

Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41048
dbus/dbus-memory.c