From f346d0e2b0e53f3f875f4eee8c7dd8f5b821f89b Mon Sep 17 00:00:00 2001 From: Kimmo Ollila Date: Sun, 15 Jan 2017 19:05:20 +0200 Subject: [PATCH] Increase the default stack size on INTEGRITY INTEGRITY doesn't support self-extending stack. The default stack size for a pthread on INTEGRITY is too small so we have to increase the default size. Change-Id: I0787d14938cf5e7e96c35df204212c8e83aa8893 Reviewed-by: Lars Knoll Reviewed-by: Nikola Velinov Reviewed-by: Oswald Buddenhagen Reviewed-by: Thiago Macieira --- src/corelib/thread/qthread.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 7118ad5c9bd..c8777cac821 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -149,6 +149,14 @@ QThreadPrivate::QThreadPrivate(QThreadData *d) exited(false), returnCode(-1), stackSize(0), priority(QThread::InheritPriority), data(d) { + +// INTEGRITY doesn't support self-extending stack. The default stack size for +// a pthread on INTEGRITY is too small so we have to increase the default size +// to 128K. +#ifdef Q_OS_INTEGRITY + stackSize = 128 * 1024; +#endif + #if defined (Q_OS_WIN) handle = 0; # ifndef Q_OS_WINRT