]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove the fillcount from the isc_mempool API
authorOndřej Surý <ondrej@sury.org>
Thu, 25 Feb 2021 13:54:12 +0000 (14:54 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 3 Mar 2021 14:32:01 +0000 (15:32 +0100)
commit46c90d31e1529fc4422d8b6db02ba2a3c844365a
treeaa348b9daefc4292d28d5614b8ef413f9dec677d
parent17900a352879dcaa308e7b10ec2dcf89b0d5f60a
Remove the fillcount from the isc_mempool API

Previously, the fillcount could be used to indicate how many elements
would be preallocated every time the memory would be empty.  This would
result in bursty allocations when the mempool would be drained.

For more smooth performance, we allocate the new pool items only as
needed.  In the future, we could consider changing the
isc_mempool_create() function to take an initial number of pre-allocated
items on the pool, so the bursty allocation happens only on the pool
creation.
bin/dig/dighost.c
bin/plugins/filter-aaaa.c
lib/dns/adb.c
lib/dns/dispatch.c
lib/dns/message.c
lib/isc/include/isc/mem.h
lib/isc/mem.c
lib/isc/netmgr/netmgr.c
lib/isc/tests/mem_test.c
lib/isc/win32/libisc.def.in