From c2918ed5163430c26f9cee4d9cdfc79edc8412d4 Mon Sep 17 00:00:00 2001 From: Bruce Hoult Date: Mon, 5 Jan 2015 04:33:35 +1300 Subject: [PATCH] Fix OSX issue with pthread_attr_setstacksize failure (bug introduced in commit 7bef74b) * tests/test.c (main): Set stack size to 1000 KiB instead of 1000000 bytes (to avoid pthread_attr_setstacksize failure with "stacksize is not a multiple of the system page size" error on Darwin) --- tests/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.c b/tests/test.c index 1f006e47..446a6b88 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1881,7 +1881,7 @@ int main(void) # if defined(GC_IRIX_THREADS) || defined(GC_FREEBSD_THREADS) \ || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \ || defined(GC_OPENBSD_THREADS) - if ((code = pthread_attr_setstacksize(&attr, 1000000)) != 0) { + if ((code = pthread_attr_setstacksize(&attr, 1000 * 1024)) != 0) { GC_printf("pthread_attr_setstacksize failed, error=%d\n", code); FAIL; } -- 2.40.0