1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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
This commit is contained in:
Richard Smith 2016-08-24 00:54:49 +00:00
parent 13d789ce38
commit 0b5fef23d4

View File

@ -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