dbus_message_cache_or_finalize: allow message cache to be disabled at runtime
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 12 May 2011 12:01:32 +0000 (13:01 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Feb 2012 17:54:37 +0000 (17:54 +0000)
commitd571e70a534e8d636fb6572f498f7e0b42b0972c
treebc8b895983290aa8bc5d6e80a22e3dc0b08889b9
parent01e3c41d75c1b31f0d2fac972b3ea2723dbde06e
dbus_message_cache_or_finalize: allow message cache to be disabled at runtime

This should make it easier to diagnose message-related ref leaks,
use-after-free, etc. with Valgrind: for optimal results (and pessimal
performance), we want to avoid re-using memory blocks for as long as
possible.

For now this is conditional on DBUS_BUILD_TESTS. It could get its own
conditional if desired.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37286
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Lennart Poettering <lennart@poettering.net>
dbus/dbus-message.c