]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Document the current default stack sizes on different systems
authorOndřej Surý <ondrej@isc.org>
Tue, 5 Aug 2025 05:34:15 +0000 (07:34 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 5 Aug 2025 08:46:09 +0000 (10:46 +0200)
The default stack sizes varies between operating systems and between
different system libc libraries from 128kB (Alpine Linux with MUSL) to
8M (Linux with glibc).  Document the different values used to justify
the value of THREAD_MINSTACKSIZE (currently set to 1MB).

lib/isc/thread_p.h

index 0fd02a9684ac0724fd2afa82774e75ddf57c13fc..b31e6c30387998a6215dbbfa2322e1fe83d863e4 100644 (file)
 
 /*! \file */
 
+/*
+ * The current default stack sizes are as follows:
+ * - Linux glibc: 8MB
+ * - Linux musl: 128kB
+ * - FreeBSD: 2MB
+ * - OpenBSD: 512kB
+ * - NetBSD: 4MB
+ */
 #ifndef THREAD_MINSTACKSIZE
 #define THREAD_MINSTACKSIZE (1U * 1024 * 1024)
 #endif /* ifndef THREAD_MINSTACKSIZE */