]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reduce the number of hazard pointers
authorOndřej Surý <ondrej@isc.org>
Tue, 7 Dec 2021 19:35:58 +0000 (20:35 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 7 Dec 2021 20:12:53 +0000 (21:12 +0100)
commitc6f3e12fe74bc24285db27c75bfce421d9751954
tree588b6d29bb58bebe87a96bd9a5284a2352516aab
parent15ce1737fa39f8c5e68da5fb7edfd478cbda3a4e
Reduce the number of hazard pointers

Previously, we set the number of the hazard pointers to be 4 times the
number of workers because the dispatch ran on the old socket code.
Since the old socket code was removed there's a smaller number of
threads, namely:

 - 1 main thread
 - 1 timer thread
 - <n> netmgr threads
 - <n> threadpool threads

Set the number of hazard pointers to 2 + 2 * workers.
lib/isc/managers.c
lib/isc/tests/doh_test.c