From 24fa8749bba103b9258434fc2e3f9a1d99b64385 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 5 Jan 2015 16:13:06 +0000 Subject: [PATCH] re PR go/61871 (FAIL: regexp from libgo testsuite on non-split stack targets) PR go/61871 runtime: Increase stack size on 64-bit non-split-stack systems. From Uros Bizjak. From-SVN: r219192 --- libgo/runtime/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 6270142ea9f..20fbc0a6182 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -50,7 +50,7 @@ extern void __splitstack_block_signals_context (void *context[10], int *, #if defined(USING_SPLIT_STACK) && defined(LINKER_SUPPORTS_SPLIT_STACK) # define StackMin PTHREAD_STACK_MIN #else -# define StackMin 2 * 1024 * 1024 +# define StackMin ((sizeof(char *) < 8) ? 2 * 1024 * 1024 : 4 * 1024 * 1024) #endif uintptr runtime_stacks_sys; -- 2.30.2