]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pools: add an alignment property
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Aug 2025 16:03:09 +0000 (18:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Aug 2025 17:20:36 +0000 (19:20 +0200)
commiteb075d15f67d81c1931dea017c05a5cd69dece05
tree6d1d39182a8130dda167f13dd9e712641a961e93
parentac23b873f5a1e448b8a0e612a2b7868f60f7bb4d
MEDIUM: pools: add an alignment property

This will be used to declare aligned pools. For now it's not used,
but it's properly set from the various registrations that compose
a pool, and rounded up to the next power of 2, with a minimum of
sizeof(void*).

The alignment is returned in the "show pools" part that indicates
the entry size. E.g. "(56 bytes/8)" means 56 bytes, aligned by 8.
include/haproxy/pool-t.h
src/pool.c