Skip to content

Commit 590258b

Browse files
JordanYateskartben
authored andcommitted
posix: options: POSIX_THREADS require a stack
`pthread_setspecific` requires a stack in order to allocate the `struct pthread_key_data` data structure. On 64 bit systems this data structure is 32 bytes, resulting in 160 bytes usage for the default 5 supported threads. Signed-off-by: Jordan Yates <[email protected]>
1 parent 3da69a8 commit 590258b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/posix/options/Kconfig.pthread

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ menuconfig POSIX_THREADS
1515

1616
if POSIX_THREADS
1717

18+
config HEAP_MEM_POOL_ADD_SIZE_POSIX_THREADS
19+
def_int 256
20+
1821
config POSIX_THREAD_THREADS_MAX
1922
int "Maximum number of POSIX threads"
2023
default 5

0 commit comments

Comments
 (0)