From e4cd654236d64b354f15b7db11a410240fdca07e Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 12 Aug 2015 23:35:33 +0200 Subject: [PATCH] Increase default stack size of new threads to 80 KiB. This fixes a crash where git has a 64 KiB stack buffer. --- libpthread/pthread_attr_init.c++ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpthread/pthread_attr_init.c++ b/libpthread/pthread_attr_init.c++ index f52b1ab1..9e1ea469 100644 --- a/libpthread/pthread_attr_init.c++ +++ b/libpthread/pthread_attr_init.c++ @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2014, 2015. This file is part of Sortix libpthread. @@ -25,7 +25,7 @@ #include #include -static const unsigned long DEFAULT_STACK_SIZE = 64 * 1024; +static const unsigned long DEFAULT_STACK_SIZE = 80 * 1024; extern "C" int pthread_attr_init(pthread_attr_t* attr) {