]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use proper padding instead of using alignas()
authorOndřej Surý <ondrej@isc.org>
Mon, 4 Dec 2023 11:21:33 +0000 (12:21 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 09:54:35 +0000 (10:54 +0100)
commit2463e5232d7f23aea84df1a843e2c5478110546f
tree8a03b0edd2f0b6dc60f508f0b1bad7d12abdb3a3
parent05e60a0af6f1604234b5977d30005f426247ef08
Use proper padding instead of using alignas()

As it was pointed out, the alignas() can't be used on objects larger
than `max_align_t` otherwise the compiler might miscompile the code to
use auto-vectorization on unaligned memory.

As we were only using alignas() as a way to prevent false memory
sharing, we can use manual padding in the affected structures.
configure.ac
lib/isc/Makefile.am
lib/isc/include/isc/align.h [deleted file]
lib/isc/include/isc/quota.h
lib/isc/include/isc/rwlock.h
lib/isc/job_p.h
lib/isc/mem.c