diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-22 17:24:01 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-22 17:33:41 +0200 |
commit | 268429962056a12e0e899612dafb433c257af5cf (patch) | |
tree | 5a265f527f5e4894a7c47ba5b2b9e70abddacfd2 /recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch | |
parent | c4c70e76c1ead05c32b6089e32c75eb93b42ae55 (diff) | |
download | meta-qt5-268429962056a12e0e899612dafb433c257af5cf.tar.gz |
qtwebengine: add patch for long paths
* imported from http://code.qt.io/cgit/yocto/meta-qt5.git/tree/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch b/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch deleted file mode 100644 index 82e49f6f..00000000 --- a/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Adjust-default-pthread-stack-size.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From 54cf1a5476fac8b7d5a18742a63abdec788989a7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 7 Jul 2017 16:41:23 -0700 | ||
4 | Subject: [PATCH] chromium: musl: Adjust default pthread stack size | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | chromium/base/threading/platform_thread_linux.cc | 3 ++- | ||
9 | chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | 4 ++-- | ||
10 | 2 files changed, 4 insertions(+), 3 deletions(-) | ||
11 | |||
12 | diff --git a/chromium/base/threading/platform_thread_linux.cc b/chromium/base/threading/platform_thread_linux.cc | ||
13 | index 92fbda5ee1..c41579d4ed 100644 | ||
14 | --- a/chromium/base/threading/platform_thread_linux.cc | ||
15 | +++ b/chromium/base/threading/platform_thread_linux.cc | ||
16 | @@ -175,7 +175,8 @@ void TerminateOnThread() {} | ||
17 | |||
18 | size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) { | ||
19 | #if !defined(THREAD_SANITIZER) | ||
20 | - return 0; | ||
21 | + // use 8mb like glibc to avoid running out of space | ||
22 | + return (1 << 23); | ||
23 | #else | ||
24 | // ThreadSanitizer bloats the stack heavily. Evidence has been that the | ||
25 | // default stack size isn't enough for some browser tests. | ||
26 | diff --git a/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp b/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | ||
27 | index 1d164f510a..3358deb256 100644 | ||
28 | --- a/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | ||
29 | +++ b/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | ||
30 | @@ -68,7 +68,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() { | ||
31 | // FIXME: On Mac OSX and Linux, this method cannot estimate stack size | ||
32 | // correctly for the main thread. | ||
33 | |||
34 | -#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD) | ||
35 | +#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD) | ||
36 | // pthread_getattr_np() can fail if the thread is not invoked by | ||
37 | // pthread_create() (e.g., the main thread of webkit_unit_tests). | ||
38 | // If so, a conservative size estimate is returned. | ||
39 | @@ -135,7 +135,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() { | ||
40 | } | ||
41 | |||
42 | void* StackFrameDepth::getStackStart() { | ||
43 | -#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD) | ||
44 | +#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD) | ||
45 | pthread_attr_t attr; | ||
46 | int error; | ||
47 | #if OS(FREEBSD) | ||