]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't use mem freelists for isc_mempools
authorOndřej Surý <ondrej@sury.org>
Tue, 14 Dec 2021 09:40:47 +0000 (10:40 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 15 Dec 2021 12:29:19 +0000 (13:29 +0100)
commitc96b6eb5ece1d44fdfbce45da2364e3764956822
treec598308473c6a8c4c55b7d8f33b8bd16fc980acf
parentc5b703d1c629750345689b917bcb712ab8e9381c
Don't use mem freelists for isc_mempools

Previously, with BIND 9 internal allocator, when isc_mempool_put() would
return memory to the allocator, it would not be freed, but it would be
returned to the "freelists" and the memory would not be released to the
operating system.

Change the isc_mempool_get() and isc_mempool_put() to avoid the internal
allocator (mem_getunlocked() and mem_putunlocked()).
lib/isc/mem.c