]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: prepare POOL_EXTRA to be split into multiple extra fields
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 14:44:26 +0000 (15:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 15:40:48 +0000 (16:40 +0100)
commit7fa092b727f45b2cb0975c36e9c1c61732f47db7
tree97714f892215b4edf33ca1c1fe6d50f85daa56f1
parentd392973dccbbf2647927d996da9251bb09a34363
MINOR: pools: prepare POOL_EXTRA to be split into multiple extra fields

Here the idea is to calculate the POOL_EXTRA size that is appended at
the end of a pool object based on the sum of enabled optional fields
so that we can more easily compute offsets and sizes depending on build
options.

For this, POOL_EXTRA is replaced with POOL_EXTRA_MARK which itself is
set either to sizeof(void*) or zero depending on whether we enable
marking the origin pool or not upon allocation.
include/haproxy/pool.h