[llvm] r279599 - Increase the size of the sigaltstack used by LLVM signal handlers. 8KB is not
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 17:54:49 PDT 2016
Author: rsmith
Date: Tue Aug 23 19:54:49 2016
New Revision: 279599
URL: http://llvm.org/viewvc/llvm-project?rev=279599&view=rev
Log:
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!
Modified:
llvm/trunk/lib/Support/Unix/Signals.inc
Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=279599&r1=279598&r2=279599&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Tue Aug 23 19:54:49 2016
@@ -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
More information about the llvm-commits
mailing list