void-packages/srcpkgs/qt5/patches/0030-qtscript-fastmalloc-stacksize.patch
Jürgen Buchmüller 845f11032a
qt5: update to 5.11.2
[ci skip]

Closes: #2538 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-11-21 19:36:58 +01:00

16 lines
670 B
Diff

--- qtscript/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp 2018-10-07 21:25:14.377211462 +0200
+++ qtscript/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp 2018-10-07 21:26:13.987214537 +0200
@@ -1456,7 +1456,12 @@
pthread_cond_init(&m_scavengeCondition, 0);
m_scavengeThreadActive = true;
pthread_t thread;
+ pthread_attr_t attr;
+ pthread_attr_init(&attr);
+#if !defined(__GLIBC__)
+ pthread_attr_setstacksize(&attr, 2 * 1024 * 1024);
+#endif
- pthread_create(&thread, 0, runScavengerThread, this);
+ pthread_create(&thread, &attr, runScavengerThread, this);
}
void* TCMalloc_PageHeap::runScavengerThread(void* context)