]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace internal memory calls with non-standard jemalloc API
authorOndřej Surý <ondrej@sury.org>
Tue, 11 May 2021 12:00:12 +0000 (14:00 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 9 Jul 2021 13:58:02 +0000 (15:58 +0200)
commitfcc6814776c285cb64608f5ac18281fdf8a063fe
treefc35f73c4c34b239dcc73fdf45ea0135f8793d10
parent4b3d0c66009d30f5c0bc12ee128fc59f1d853f44
Replace internal memory calls with non-standard jemalloc API

The jemalloc non-standard API fits nicely with our memory contexts, so
just rewrite the memory context internals to use the non-public API.

There's just one caveat - since we no longer track the size of the
allocation for isc_mem_allocate/isc_mem_free combination, we need to use
sallocx() to get real allocation size in both allocator and deallocator
because otherwise the sizes would not match.
lib/isc/mem.c
lib/isc/tests/mem_test.c