]> git.ipfire.org Git - thirdparty/bind9.git/commit
REQUIRE should not have side effects
authorEvan Hunt <each@isc.org>
Thu, 21 Oct 2021 09:28:48 +0000 (02:28 -0700)
committerEvan Hunt <each@isc.org>
Tue, 5 Jul 2022 20:04:17 +0000 (13:04 -0700)
commitb061e86d17bf97dc6f31ff6ad270dd45308877fa
treec4235d08b62731cfd92e1b8dd9c953191722efdc
parente8a5d0444e6fd232639e3756394817fb2ae37f41
REQUIRE should not have side effects

it's a style violation to have REQUIRE or INSIST contain code that
must run for the server to work. this was being done with some
atomic_compare_exchange calls. these have been cleaned up.  uses
of atomic_compare_exchange in assertions have been replaced with
a new macro atomic_compare_exchange_enforced, which uses RUNTIME_CHECK
to ensure that the exchange was successful.

(cherry picked from commit a499794984a17760969bd509a0c253aa2f2ecb6c)
12 files changed:
lib/dns/adb.c
lib/dns/dispatch.c
lib/dns/resolver.c
lib/dns/zone.c
lib/isc/app.c
lib/isc/include/isc/atomic.h
lib/isc/mem.c
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tlsdns.c
lib/isc/quota.c
lib/isc/task.c
lib/isc/tls.c