33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
--- qtwebengine/src/3rdparty/chromium/ppapi/utility/threading/simple_thread.cc.orig 2018-09-19 13:42:22.591109990 +0200
|
|
+++ qtwebengine/src/3rdparty/chromium/ppapi/utility/threading/simple_thread.cc 2018-09-19 13:43:38.538113908 +0200
|
|
@@ -12,11 +12,15 @@
|
|
|
|
namespace {
|
|
|
|
-// Use 2MB default stack size for Native Client, otherwise use system default.
|
|
#if defined(__native_client__)
|
|
+// Use 2MB default stack size for Native Client
|
|
const size_t kDefaultStackSize = 2 * 1024 * 1024;
|
|
-#else
|
|
+#elif defined(__GLIBC__)
|
|
+// Use system default for Gnu libc
|
|
const size_t kDefaultStackSize = 0;
|
|
+#else
|
|
+// Use 2MB default stack size for Musl libc
|
|
+const size_t kDefaultStackSize = 2 * 1024 * 1024;
|
|
#endif
|
|
|
|
|
|
--- qtwebengine/src/3rdparty/chromium/v8/src/base/platform/platform-posix.cc.orig 2018-09-23 17:42:44.130455819 +0200
|
|
+++ qtwebengine/src/3rdparty/chromium/v8/src/base/platform/platform-posix.cc 2018-09-23 17:43:35.195452776 +0200
|
|
@@ -732,6 +732,9 @@
|
|
// Default on AIX is 96kB -- bump up to 2MB
|
|
stack_size = 2 * 1024 * 1024;
|
|
#endif
|
|
+#if !defined(__GLIBC__)
|
|
+ stack_size = 2 * 1024 * 1024;
|
|
+#endif
|
|
}
|
|
if (stack_size > 0) {
|
|
result = pthread_attr_setstacksize(&attr, stack_size);
|