diff options
author | Kimmo Ollila <kimmo.ollila@qt.io> | 2017-01-15 19:05:20 +0200 |
---|---|---|
committer | Kimmo Ollila <kimmo.ollila@theqtcompany.com> | 2017-01-23 06:25:12 +0000 |
commit | f346d0e2b0e53f3f875f4eee8c7dd8f5b821f89b (patch) | |
tree | 944c7b96f2a35bbca71c070fe5be5e29b4cf6cf5 /src/corelib/thread/qthread.cpp | |
parent | 8e445f8434f1525bce5bd4ba4b561f379b5f2cf4 (diff) |
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 <lars.knoll@qt.io>
Reviewed-by: Nikola Velinov <nvelinov@ghs.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r-- | src/corelib/thread/qthread.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 7118ad5c9b..c8777cac82 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 |