]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace isc_mem_*_aligned(..., alignment) with isc_mem_*x(..., flags)
authorOndřej Surý <ondrej@isc.org>
Fri, 3 Jun 2022 10:23:49 +0000 (12:23 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 5 Oct 2022 14:44:05 +0000 (16:44 +0200)
commitdbf5672f320f26a547072786f7005309b951049b
treed2f963af11c2e7984e7677e4db178138b2f6f893
parent4d5fd50f9a16a2ae4035de3b3a450344957d5a13
Replace isc_mem_*_aligned(..., alignment) with isc_mem_*x(..., flags)

Previously, the isc_mem_get_aligned() and friends took alignment size as
one of the arguments.  Replace the specific function with more generic
extended variant that now accepts ISC_MEM_ALIGN(alignment) for aligned
allocations and ISC_MEM_ZERO for allocations that zeroes
the (re-)allocated memory before returning the pointer to the caller.
lib/isc/include/isc/mem.h
lib/isc/jemalloc_shim.h
lib/isc/mem.c
lib/isc/tls.c
tests/isc/mem_test.c