From 3bfeb8a9830ec93ea1054764ebb41b7e1c007830 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 17 Mar 2017 10:39:57 +0300 Subject: [PATCH] Fix gctest thread stack overflow (musl-gcc) * tests/test.c (BIG): Remove commented out defined(MSWIN32); define to 1000 if NO_GETCONTEXT; update comment. --- tests/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.40.0