]> git.ipfire.org Git - thirdparty/bird.git/commit
lib: Unify alignment of allocators
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 9 Jan 2025 15:44:51 +0000 (16:44 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 4 Feb 2025 15:10:07 +0000 (16:10 +0100)
commita8fa3f6b8d0a8235c9348cae290529d4dc2cad51
tree4db3cb3744fc5a06c480eaafae67efc5ec7a4379
parentdeec84ca33d33c367e4f647d784889c05eda38ae
lib: Unify alignment of allocators

Different internal allocators (memory blocks, linpools, and slabs) used
different way to compute alignment. Unify it to use alignment based on
standard max_align_t type.

On x86_64, this does not change alignment of memory blocks and linpools
(both old and new is 16), but it increases alignment of slabs from 8 to
16.
lib/birdlib.h
lib/mempool.c
lib/resource.c
lib/slab.c