From: Ivan Maidanski Date: Fri, 17 Mar 2017 07:39:57 +0000 (+0300) Subject: Fix gctest thread stack overflow (musl-gcc) X-Git-Tag: v8.0.0~841 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfeb8a;p=gc Fix gctest thread stack overflow (musl-gcc) * tests/test.c (BIG): Remove commented out defined(MSWIN32); define to 1000 if NO_GETCONTEXT; update comment. --- diff --git a/tests/test.c b/tests/test.c index 42803ccf..39e75124 100644 --- a/tests/test.c +++ b/tests/test.c @@ -634,8 +634,8 @@ void *GC_CALLBACK reverse_test_inner(void *data) return GC_call_with_gc_active(reverse_test_inner, (void*)(word)1); } -# if /*defined(MSWIN32) ||*/ defined(MACOS) - /* Win32S only allows 128K stacks */ +# if defined(MACOS) || defined(NO_GETCONTEXT /* e.g. musl */) + /* Assume 128K stacks at least. */ # define BIG 1000 # elif defined(PCR) /* PCR default stack is 100K. Stack frames are up to 120 bytes. */