]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: store the allocated size for each pool
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 07:57:59 +0000 (08:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit96d5bc7379f04aa7652d786bce15f2501d564515
treec914de08572e488d18f03ac752516cb0e3813daa
parente981631d2737c5ded7db96ec2789e60c2787bdb7
MINOR: pools: store the allocated size for each pool

The allocated size is the visible size plus the extra storage. Since
for now we can store up to two extra elements (mark and tracer), it's
convenient because now we know that the mark is always stored at
->size, and the tracer is always before ->alloc_sz.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c