NetworkManager/shared/c-rbtree/src
David Rheinsberg 1554936e33
c-rbtree: reduce alignment constraints
There are some Debian-supported architectures where `max_align_t` is
only aligned to 4-bytes. This is unfortunate and breaks our assumptions.
While glibc-malloc still guarantees 8 / 16 bytes alignment, this is not
necessarily guaranteed by the C standard (and alternative allocators
will deviate (see jemalloc, for instance)).

Fortunately, we only need 2 flags, so a 4-byte alignment is more than
enough.

Reported-by: Thomas Haller
Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>

https://github.com/c-util/c-rbtree/pull/4
2020-10-07 16:20:42 +02:00
..
c-rbtree-private.h shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
c-rbtree.c c-rbtree: reduce alignment constraints 2020-10-07 16:20:42 +02:00
c-rbtree.h c-rbtree: reduce alignment constraints 2020-10-07 16:20:42 +02:00
libcrbtree.sym Merge commit '4f4e96655625a0ad8c5fc451c5a3a8dda3bf5456' as 'shared/c-rbtree' 2018-09-18 15:08:46 +02:00
meson.build shared/c-rbtree: reimport 2020-06-03 22:08:05 +02:00
test-api.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
test-basic.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
test-map.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
test-misc.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
test-parallel.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00
test-posix.c shared/c-rbtree: reimport 2019-04-14 17:23:01 +02:00