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>
This commit is contained in:
Kimmo Ollila 2017-01-15 19:05:20 +02:00 committed by Kimmo Ollila
parent 8e445f8434
commit f346d0e2b0

View File

@ -149,6 +149,14 @@ QThreadPrivate::QThreadPrivate(QThreadData *d)
exited(false), returnCode(-1), exited(false), returnCode(-1),
stackSize(0), priority(QThread::InheritPriority), data(d) 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) #if defined (Q_OS_WIN)
handle = 0; handle = 0;
# ifndef Q_OS_WINRT # ifndef Q_OS_WINRT