void-packages/srcpkgs/musl/patches/bigstack-option.patch
Michael Gehring 6559823d31 musl: add bigstack build option
This enables building musl with a bigger default pthread stack size
(currently 8MB to match glibc default stack size), to make it easier to
diagnose stack-too-small issues.
2017-06-29 11:44:22 +00:00

14 lines
419 B
Diff

--- src/internal/pthread_impl.h.orig 2017-06-28 22:52:51.000000000 +0000
+++ src/internal/pthread_impl.h 2017-06-28 22:52:59.297555622 +0000
@@ -141,7 +141,11 @@
void __block_app_sigs(void *);
void __restore_sigs(void *);
+#ifdef VOID_BIGSTACK
+#define DEFAULT_STACK_SIZE 8388608
+#else
#define DEFAULT_STACK_SIZE 81920
+#endif
#define DEFAULT_GUARD_SIZE 4096
#define __ATTRP_C11_THREAD ((void*)(uintptr_t)-1)