]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use isc_mem_reget() to handle the internal active handle cache
authorOndřej Surý <ondrej@isc.org>
Wed, 22 Sep 2021 18:03:43 +0000 (20:03 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 23 Sep 2021 20:17:15 +0000 (22:17 +0200)
commit8edbd0929fa4e28139798a50950efc2dac491d0c
treea2e7013807698960045b69675adb41e6b7e19e79
parent15d6249260bc7e9ded7890d95a31c568e7dac586
Use isc_mem_reget() to handle the internal active handle cache

The netmgr, has an internal cache for freed active handles.  This cache
was allocated using isc_mem_allocate()/isc_mem_free() API because it was
simpler to reallocate the cache when we needed to grow it.  The new
isc_mem_reget() function could be used here reducing the need to use
isc_mem_allocate() API which is tad bit slower than isc_mem_get() API.
lib/isc/netmgr/netmgr.c