diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-05 16:13:06 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-05 16:13:06 +0000 |
commit | e60de63c235af7510193e4d075aff13992281c43 (patch) | |
tree | 9985b4dfd822a91e98fd20480e506ec267b7ddec /libgo/runtime | |
parent | c1fd77316d75af1122efb4b8b2988a86599558dc (diff) | |
download | gcc-e60de63c235af7510193e4d075aff13992281c43.tar.gz |
PR go/61871
runtime: Increase stack size on 64-bit non-split-stack systems.
From Uros Bizjak.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219192 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |