]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: pools: apply poisonning on every allocated pool
authorWilly Tarreau <w@1wt.eu>
Tue, 25 Nov 2014 12:45:16 +0000 (13:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Nov 2014 12:48:43 +0000 (13:48 +0100)
commit23a5c396ec268f6cf1958d73b56cd107c4d9ef18
tree56f1a61c0d48a078b797b53e88e35f6d3cd193e3
parentf399b0debfc6c7dc17c6ad503885c911493add56
DEBUG: pools: apply poisonning on every allocated pool

Till now, when memory poisonning was enabled, it used to be done only
after a calloc(). But sometimes it's not enough to detect unexpected
sharing, so let's ensure that we now poison every allocation once it's
in place. Note that enabling poisonning significantly hurts performance
(it can typically half the overall performance).
include/common/memory.h