]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: spoe: use pool_alloc(), not pool_alloc_dirty()
authorWilly Tarreau <w@1wt.eu>
Mon, 22 Mar 2021 14:05:54 +0000 (15:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Mar 2021 14:35:53 +0000 (15:35 +0100)
commitf1a91292dc05a251a1ba9fa0f3f96b919b253df1
tree353a4d25eafdc19f5207b2ae2aa1487c18c9541b
parent5bfeb2139b023cf0e8cff6ff294df01da6bbe234
MINOR: spoe: use pool_alloc(), not pool_alloc_dirty()

pool_alloc_dirty() is the version below pool_alloc() that never performs
the memory poisonning. It should only be called directly for very large
unstructured areas for which enabling memory poisonning would not bring
anything but could significantly hurt performance (e.g. buffers). Using
this function here will not provide any real benefit, it only avoids the
area being poisonned before being zeroed. Ideally a pool_calloc() function
should be provided for this.
src/flt_spoe.c