re PR go/61871 (FAIL: regexp from libgo testsuite on non-split stack targets)
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Jan 2015 16:13:06 +0000 (16:13 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Jan 2015 16:13:06 +0000 (16:13 +0000)
PR go/61871
runtime: Increase stack size on 64-bit non-split-stack systems.

From Uros Bizjak.

From-SVN: r219192

libgo/runtime/proc.c

index 6270142ea9f7894fdbb84bd7df5149615a28a9e5..20fbc0a618290e36b014ef9df9b449302ba4cf6e 100644 (file)
@@ -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;