]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: memory: move pool-specific path of the locked pool_free() to __pool_free()
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Jun 2020 16:35:24 +0000 (18:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:56 +0000 (10:18 +0200)
commitf8c1b648c0504c08812e252535cda6d3c58db2ad
treeddc14b23336763a90dbab1779fec1a4a50717ac7
parentfb117e6a8eaa491c32896d90aeaaca5609a7317c
MINOR: memory: move pool-specific path of the locked pool_free() to __pool_free()

pool_free() was not identical between locked and lockless pools. The
different was the call to __pool_free() in one case versus open-coded
accesses in the other, and the poisoning brought by commit da52035a45
("MINOR: memory: also poison the area on freeing") which unfortunately
did if only for the lockless path.

Let's now have __pool_free() to work on the global pool also in the
locked case so that the code is architected similarly.
include/common/memory.h