summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-24 00:54:49 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-24 00:54:49 +0000
commitb31163136ca249127b95a457308c7de3cb7a9841 (patch)
treec7379705ae73e0af874dd900bb9271ee150e3a0a /llvm/lib
parentc3b2e80b9d7615190bb5d50f17d6524c2fd8d66d (diff)
downloadbcm5719-llvm-b31163136ca249127b95a457308c7de3cb7a9841.tar.gz
bcm5719-llvm-b31163136ca249127b95a457308c7de3cb7a9841.zip
Increase the size of the sigaltstack used by LLVM signal handlers. 8KB is not
sufficient in some cases; increase to 64KB, which should be enough for anyone :) Patch by github.com/bryant! llvm-svn: 279599
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 97b8394f023..6a35656c8bb 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -127,7 +127,7 @@ static void RegisterHandler(int Signal) {
static stack_t OldAltStack;
static void CreateSigAltStack() {
- const size_t AltStackSize = MINSIGSTKSZ + 8192;
+ const size_t AltStackSize = MINSIGSTKSZ + 64 * 1024;
// If we're executing on the alternate stack, or we already have an alternate
// signal stack that we're happy with, there's nothing for us to do. Don't
OpenPOWER on IntegriCloud