bind9/lib/isc
Michał Kępień 4d1986ebcb Handle ISC_MEM_DEFAULTFILL consistently
Contrary to what the documentation states, memory filling is only
enabled by --enable-developer (or by setting -DISC_MEM_DEFAULTFILL=1) if
the internal memory allocator is used.  However, the internal memory
allocator is disabled by default, so just using the --enable-developer
build-time option does not enable memory filling (passing "-M fill" on
the named command line is necessary to actually enable it).  As memory
filling is a useful tool for troubleshooting certain types of bugs, it
should also be enabled by --enable-developer when the system allocator
is used.

Furthermore, memory-related preprocessor macros are handled in two
distinct locations: lib/isc/include/isc/mem.h and bin/named/main.c.
This makes the logic hard to follow.

Move all code handling the ISC_MEM_DEFAULTFILL preprocessor macro to
lib/isc/include/isc/mem.h, ensuring memory filling is enabled by the
--enable-developer build-time switch, no matter which memory allocator
is used.
2022-07-15 10:45:34 +02:00
..
include Handle ISC_MEM_DEFAULTFILL consistently 2022-07-15 10:45:34 +02:00
netmgr Gracefully handle uv_read_start() failures 2022-06-14 11:55:03 +02:00
pthreads Update clang to version 14 2022-06-16 18:11:03 +02:00
tests Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
unix Update clang to version 14 2022-06-16 18:11:03 +02:00
win32 Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c Remove EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() shims 2022-03-02 09:31:50 +00:00
app.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
assertions.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
astack.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
backtrace-emptytbl.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
backtrace.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
base32.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
base64.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
bind9.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
buffer.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bufferlist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
commandline.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
counter.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
crc64.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
entropy.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
entropy_private.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
error.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
event.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
fsaccess.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
hash.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
heap.c Make isc_heap_create() and isc_heap_insert() return void 2022-03-08 20:49:15 +01:00
hex.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
hmac.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ht.c Make isc_ht_init() and isc_ht_iter_create() return void 2022-03-08 20:20:52 +01:00
httpd.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
iterated_hash.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
Kyuafile Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lex.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
lfsr.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
lib.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lib_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
log.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
Makefile.in Add LIBUV_CFLAGS to CLINCLUDE in lib/isc/Makefile.in 2022-05-31 16:43:48 +10:00
managers.c Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
md.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mem.c Fix mempool stats bug in the internal allocator 2022-07-15 10:45:34 +02:00
mem_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mutexblock.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
netaddr.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
netmgr_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
netscope.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
nonce.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
openssl_shim.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
openssl_shim.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
parseint.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pk11.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pk11_result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pool.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
portset.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
quota.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
radix.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
random.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ratelimiter.c Add FALLTHROUGH macro for __attribute__((fallthrough)) 2022-03-25 09:30:16 +01:00
regex.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
region.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rwlock.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
safe.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
serial.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
siphash.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
sockaddr.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
stats.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
string.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
symtab.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
task.c Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
task_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
taskpool.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
timer.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
timer_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tls.c Remove usage of deprecated ATOMIC_VAR_INIT() macro 2022-03-17 21:44:04 +01:00
tls_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tm.c Add FALLTHROUGH macro for __attribute__((fallthrough)) 2022-03-25 09:30:16 +01:00
trampoline.c dont run isc__trampoline_initialize() in dlopen library 2022-05-15 00:25:32 -07:00
trampoline_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
url.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
utf8.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
xoshiro128starstar.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00