diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-01-10 10:10:17 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-01-10 10:10:17 +0200 |
commit | bc0625e7a03f9f04fdae3a89137812a216e977cd (patch) | |
tree | 4adb4e8357aea4922fd27e9758ea649deba73362 /recipes-qt/qt5/qtwebengine | |
parent | a22c728d16e449f3f573f4fd1324486753378592 (diff) | |
parent | 3cf0bbb8e1113376d5b5b26ecff362e180a180fd (diff) | |
download | meta-qt5-bc0625e7a03f9f04fdae3a89137812a216e977cd.tar.gz |
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.10
* qtyocto/upstream/master:
qtbase_git: install qt.conf for the target
qtbase: mkspecs: add default toolchain options
qt5: remove use of OE_QMAKE_WAYLAND_SCANNER
gstreamer1.0-plugins-bad: add expansion parameter
qtlocation: correct PACKAGECONFIG for mapboxgl
qt5: use correct HostPrefix
qwt-qt5: rewrite completely
Fix missing OE_QMAKE_STRIP env variable
Upgrade to Qt 5.10.0
qtwebengine: make test suite succeed
Conflicts:
recipes-qt/qt5/nativesdk-qtbase_git.bb
recipes-qt/qt5/qt3d_git.bb
recipes-qt/qt5/qt5-git.inc
recipes-qt/qt5/qtbase-native_git.bb
ecipes-qt/qt5/qtbase_git.bb
recipes-qt/qt5/qtcanvas3d_git.bb
recipes-qt/qt5/qtcharts_git.bb
recipes-qt/qt5/qtconnectivity_git.bb
recipes-qt/qt5/qtdatavis3d_git.bb
recipes-qt/qt5/qtdeclarative_git.bb
recipes-qt/qt5/qtgamepad_git.bb
recipes-qt/qt5/qtgraphicaleffects_git.bb
recipes-qt/qt5/qtimageformats_git.bb
recipes-qt/qt5/qtlocation_git.bb
recipes-qt/qt5/qtmultimedia_git.bb
recipes-qt/qt5/qtnetworkauth_git.bb
recipes-qt/qt5/qtquickcontrols2_git.bb
recipes-qt/qt5/qtquickcontrols_git.bb
recipes-qt/qt5/qtremoteobjects_git.bb
recipes-qt/qt5/qtscript_git.bb
recipes-qt/qt5/qtscxml_git.bb
recipes-qt/qt5/qtsensors_git.bb
recipes-qt/qt5/qtserialbus_git.bb
recipes-qt/qt5/qtserialport_git.bb
recipes-qt/qt5/qtsvg_git.bb
recipes-qt/qt5/qttools_git.bb
recipes-qt/qt5/qttranslations_git.bb
recipes-qt/qt5/qtvirtualkeyboard_git.bb
recipes-qt/qt5/qtwayland_git.bb
recipes-qt/qt5/qtwebchannel_git.bb
recipes-qt/qt5/qtwebengine_git.bb
recipes-qt/qt5/qtwebsockets_git.bb
recipes-qt/qt5/qtwebview_git.bb
recipes-qt/qt5/qtx11extras_git.bb
recipes-qt/qt5/qtxmlpatterns_git.bb
Task-number: QTBUG-65164
Change-Id: I3a54ce7f3f82dcce2d9d1a13585a41178bda358c
Diffstat (limited to 'recipes-qt/qt5/qtwebengine')
6 files changed, 118 insertions, 35 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch index bda0ba1a..464c7648 100644 --- a/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch +++ b/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 9bdd03ad0bbb221ad7bffe0e570605c21c28b1b5 Mon Sep 17 00:00:00 2001 | 1 | From 2a3c39550955ed44cfc8410ab2da124c58ca66c0 Mon Sep 17 00:00:00 2001 |
2 | From: Samuli Piippo <samuli.piippo@qt.io> | 2 | From: Samuli Piippo <samuli.piippo@qt.io> |
3 | Date: Wed, 15 Mar 2017 13:53:28 +0200 | 3 | Date: Wed, 15 Mar 2017 13:53:28 +0200 |
4 | Subject: [PATCH] Force host toolchain configuration | 4 | Subject: [PATCH] Force host toolchain configuration |
@@ -18,7 +18,7 @@ Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> | |||
18 | 2 files changed, 8 insertions(+), 8 deletions(-) | 18 | 2 files changed, 8 insertions(+), 8 deletions(-) |
19 | 19 | ||
20 | diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro | 20 | diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro |
21 | index f1b3d47b..12123729 100644 | 21 | index dd0d3e3..70161c8 100644 |
22 | --- a/src/buildtools/configure_host.pro | 22 | --- a/src/buildtools/configure_host.pro |
23 | +++ b/src/buildtools/configure_host.pro | 23 | +++ b/src/buildtools/configure_host.pro |
24 | @@ -4,7 +4,7 @@ TEMPLATE = aux | 24 | @@ -4,7 +4,7 @@ TEMPLATE = aux |
@@ -30,7 +30,7 @@ index f1b3d47b..12123729 100644 | |||
30 | !isEmpty(QT_TARGET_ARCH): GN_TARGET_CPU = $$gnArch($$QT_TARGET_ARCH) | 30 | !isEmpty(QT_TARGET_ARCH): GN_TARGET_CPU = $$gnArch($$QT_TARGET_ARCH) |
31 | else: GN_TARGET_CPU = $$GN_HOST_CPU | 31 | else: GN_TARGET_CPU = $$GN_HOST_CPU |
32 | GN_OS = $$gnOS() | 32 | GN_OS = $$gnOS() |
33 | @@ -29,9 +29,9 @@ GN_CONTENTS = \ | 33 | @@ -31,9 +31,9 @@ GN_CONTENTS = \ |
34 | "import(\"//build/config/sysroot.gni\")" \ | 34 | "import(\"//build/config/sysroot.gni\")" \ |
35 | "import(\"//build/toolchain/gcc_toolchain.gni\")" \ | 35 | "import(\"//build/toolchain/gcc_toolchain.gni\")" \ |
36 | "gcc_toolchain(\"host\") {" \ | 36 | "gcc_toolchain(\"host\") {" \ |
@@ -42,8 +42,8 @@ index f1b3d47b..12123729 100644 | |||
42 | +" ld = \"$$which(g++)\" " \ | 42 | +" ld = \"$$which(g++)\" " \ |
43 | " ar = \"$$which(ar)\" " \ | 43 | " ar = \"$$which(ar)\" " \ |
44 | " nm = \"$$which(nm)\" " \ | 44 | " nm = \"$$which(nm)\" " \ |
45 | " toolchain_args = { " \ | 45 | " extra_cppflags = \"$$GN_HOST_EXTRA_CPPFLAGS\" " \ |
46 | @@ -42,9 +42,9 @@ GN_CONTENTS = \ | 46 | @@ -45,9 +45,9 @@ GN_CONTENTS = \ |
47 | " } " \ | 47 | " } " \ |
48 | "}" \ | 48 | "}" \ |
49 | "gcc_toolchain(\"v8_snapshot\") {" \ | 49 | "gcc_toolchain(\"v8_snapshot\") {" \ |
@@ -57,10 +57,10 @@ index f1b3d47b..12123729 100644 | |||
57 | " nm = \"$$which(nm)\" " \ | 57 | " nm = \"$$which(nm)\" " \ |
58 | " toolchain_args = { " \ | 58 | " toolchain_args = { " \ |
59 | diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri | 59 | diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri |
60 | index 714c864d..f66ca551 100644 | 60 | index 6f7b27f..1b9434b 100644 |
61 | --- a/src/core/config/linux.pri | 61 | --- a/src/core/config/linux.pri |
62 | +++ b/src/core/config/linux.pri | 62 | +++ b/src/core/config/linux.pri |
63 | @@ -98,7 +98,7 @@ contains(QT_ARCH, "mips"):!host_build { | 63 | @@ -91,7 +91,7 @@ contains(QT_ARCH, "mips") { |
64 | 64 | ||
65 | host_build { | 65 | host_build { |
66 | gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\" | 66 | gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\" |
diff --git a/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch b/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch index bf1f1891..1e187956 100644 --- a/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch +++ b/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch | |||
@@ -1,19 +1,41 @@ | |||
1 | From e695f37fc52defd1b96664b003444692e9b6cb65 Mon Sep 17 00:00:00 2001 | 1 | From f6c6a5522f006b14c4d9c4daa23f96c4e8e65a32 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 7 Jul 2017 14:09:06 -0700 | 3 | Date: Fri, 7 Jul 2017 14:09:06 -0700 |
4 | Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux | 4 | Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | --- | 7 | --- |
8 | chromium/base/process/process_metrics_posix.cc | 4 ++-- | ||
8 | chromium/base/trace_event/malloc_dump_provider.cc | 3 ++- | 9 | chromium/base/trace_event/malloc_dump_provider.cc | 3 ++- |
9 | chromium/content/child/content_child_helpers.cc | 2 +- | 10 | chromium/content/child/content_child_helpers.cc | 2 +- |
10 | 2 files changed, 3 insertions(+), 2 deletions(-) | 11 | 3 files changed, 5 insertions(+), 4 deletions(-) |
11 | 12 | ||
13 | diff --git a/chromium/base/process/process_metrics_posix.cc b/chromium/base/process/process_metrics_posix.cc | ||
14 | index 0eb5c1f..8af7799 100644 | ||
15 | --- a/chromium/base/process/process_metrics_posix.cc | ||
16 | +++ b/chromium/base/process/process_metrics_posix.cc | ||
17 | @@ -94,14 +94,14 @@ size_t ProcessMetrics::GetMallocUsage() { | ||
18 | malloc_statistics_t stats = {0}; | ||
19 | malloc_zone_statistics(nullptr, &stats); | ||
20 | return stats.size_in_use; | ||
21 | -#elif defined(OS_LINUX) || defined(OS_ANDROID) | ||
22 | +#elif defined(__GLIBC__) || defined(OS_ANDROID) | ||
23 | struct mallinfo minfo = mallinfo(); | ||
24 | #if defined(USE_TCMALLOC) | ||
25 | return minfo.uordblks; | ||
26 | #else | ||
27 | return minfo.hblkhd + minfo.arena; | ||
28 | #endif | ||
29 | -#elif defined(OS_FUCHSIA) | ||
30 | +#else | ||
31 | // TODO(fuchsia): Not currently exposed. https://crbug.com/735087. | ||
32 | return 0; | ||
33 | #endif | ||
12 | diff --git a/chromium/base/trace_event/malloc_dump_provider.cc b/chromium/base/trace_event/malloc_dump_provider.cc | 34 | diff --git a/chromium/base/trace_event/malloc_dump_provider.cc b/chromium/base/trace_event/malloc_dump_provider.cc |
13 | index 7d0cb57931..10be59ebad 100644 | 35 | index 14ba0a2..e5d9581 100644 |
14 | --- a/chromium/base/trace_event/malloc_dump_provider.cc | 36 | --- a/chromium/base/trace_event/malloc_dump_provider.cc |
15 | +++ b/chromium/base/trace_event/malloc_dump_provider.cc | 37 | +++ b/chromium/base/trace_event/malloc_dump_provider.cc |
16 | @@ -210,6 +210,7 @@ MallocDumpProvider::~MallocDumpProvider() {} | 38 | @@ -197,6 +197,7 @@ MallocDumpProvider::~MallocDumpProvider() {} |
17 | // the current process. | 39 | // the current process. |
18 | bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, | 40 | bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, |
19 | ProcessMemoryDump* pmd) { | 41 | ProcessMemoryDump* pmd) { |
@@ -21,7 +43,7 @@ index 7d0cb57931..10be59ebad 100644 | |||
21 | size_t total_virtual_size = 0; | 43 | size_t total_virtual_size = 0; |
22 | size_t resident_size = 0; | 44 | size_t resident_size = 0; |
23 | size_t allocated_objects_size = 0; | 45 | size_t allocated_objects_size = 0; |
24 | @@ -321,7 +322,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, | 46 | @@ -317,7 +318,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, |
25 | pmd->DumpHeapUsage(metrics_by_context, overhead, "malloc"); | 47 | pmd->DumpHeapUsage(metrics_by_context, overhead, "malloc"); |
26 | } | 48 | } |
27 | tid_dumping_heap_ = kInvalidThreadId; | 49 | tid_dumping_heap_ = kInvalidThreadId; |
@@ -31,7 +53,7 @@ index 7d0cb57931..10be59ebad 100644 | |||
31 | } | 53 | } |
32 | 54 | ||
33 | diff --git a/chromium/content/child/content_child_helpers.cc b/chromium/content/child/content_child_helpers.cc | 55 | diff --git a/chromium/content/child/content_child_helpers.cc b/chromium/content/child/content_child_helpers.cc |
34 | index 7ddeb4d16a..b8c73b09c5 100644 | 56 | index 7ddeb4d..b8c73b0 100644 |
35 | --- a/chromium/content/child/content_child_helpers.cc | 57 | --- a/chromium/content/child/content_child_helpers.cc |
36 | +++ b/chromium/content/child/content_child_helpers.cc | 58 | +++ b/chromium/content/child/content_child_helpers.cc |
37 | @@ -25,7 +25,7 @@ namespace content { | 59 | @@ -25,7 +25,7 @@ namespace content { |
diff --git a/recipes-qt/qt5/qtwebengine/0005-musl-don-t-use-pvalloc-as-it-s-not-available-on-musl.patch b/recipes-qt/qt5/qtwebengine/0005-musl-don-t-use-pvalloc-as-it-s-not-available-on-musl.patch new file mode 100644 index 00000000..38fa8729 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0005-musl-don-t-use-pvalloc-as-it-s-not-available-on-musl.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 0fd704beb18948577e793b73c569dc933c478f2e Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Tue, 12 Dec 2017 16:06:14 +0200 | ||
4 | Subject: [PATCH] musl: don't use pvalloc as it's not available on musl | ||
5 | |||
6 | Change-Id: I7145463ac7b9560e7459d3384a3db108bd727403 | ||
7 | Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> | ||
8 | --- | ||
9 | src/core/api/qtbug-61521.cpp | 8 -------- | ||
10 | 1 file changed, 8 deletions(-) | ||
11 | |||
12 | diff --git a/src/core/api/qtbug-61521.cpp b/src/core/api/qtbug-61521.cpp | ||
13 | index 002a1af..8fd2da3 100644 | ||
14 | --- a/src/core/api/qtbug-61521.cpp | ||
15 | +++ b/src/core/api/qtbug-61521.cpp | ||
16 | @@ -74,10 +74,6 @@ SHIM_SYMBOL_VERSION(valloc); | ||
17 | void* __valloc(size_t size) | ||
18 | SHIM_ALIAS_SYMBOL(ShimValloc); | ||
19 | |||
20 | -SHIM_SYMBOL_VERSION(pvalloc); | ||
21 | -void* __pvalloc(size_t size) | ||
22 | - SHIM_ALIAS_SYMBOL(ShimPvalloc); | ||
23 | - | ||
24 | SHIM_SYMBOL_VERSION(posix_memalign); | ||
25 | int __posix_memalign(void** r, size_t a, size_t s) | ||
26 | SHIM_ALIAS_SYMBOL(ShimPosixMemalign); | ||
27 | @@ -110,10 +106,6 @@ SHIM_HIDDEN void* ShimValloc(size_t size) { | ||
28 | return valloc(size); | ||
29 | } | ||
30 | |||
31 | -SHIM_HIDDEN void* ShimPvalloc(size_t size) { | ||
32 | - return pvalloc(size); | ||
33 | -} | ||
34 | - | ||
35 | SHIM_HIDDEN int ShimPosixMemalign(void** r, size_t a, size_t s) { | ||
36 | return posix_memalign(r,a,s); | ||
37 | } | ||
diff --git a/recipes-qt/qt5/qtwebengine/0006-musl-link-against-libexecinfo.patch b/recipes-qt/qt5/qtwebengine/0006-musl-link-against-libexecinfo.patch new file mode 100644 index 00000000..cabc598e --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0006-musl-link-against-libexecinfo.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 59fd9db95db829e51840df09962f7c6baf484246 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Thu, 14 Dec 2017 11:28:10 +0200 | ||
4 | Subject: [PATCH] musl: link against libexecinfo | ||
5 | |||
6 | Change-Id: Ifada60f9c72691973612850121f6fb152d70839a | ||
7 | Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> | ||
8 | --- | ||
9 | src/core/core_module.pro | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/src/core/core_module.pro b/src/core/core_module.pro | ||
13 | index 2409ccb..e41e5a9 100644 | ||
14 | --- a/src/core/core_module.pro | ||
15 | +++ b/src/core/core_module.pro | ||
16 | @@ -45,7 +45,7 @@ else: QMAKE_LFLAGS += $$NINJA_LFLAGS | ||
17 | POST_TARGETDEPS += $$NINJA_TARGETDEPS | ||
18 | |||
19 | |||
20 | -LIBS_PRIVATE += -L$$api_library_path | ||
21 | +LIBS_PRIVATE += -L$$api_library_path -lexecinfo | ||
22 | CONFIG *= no_smart_library_merge | ||
23 | osx { | ||
24 | LIBS_PRIVATE += -Wl,-force_load,$${api_library_path}$${QMAKE_DIR_SEP}lib$${api_library_name}.a | ||
diff --git a/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch b/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch index 7a778c22..d6de1c00 100644 --- a/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch +++ b/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d0621f9278ddd04c05b6ab3ef638be65f96f1bd6 Mon Sep 17 00:00:00 2001 | 1 | From 2ed7538fb95ce3bb8a5917c648e2361f85b9c67b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 7 Jul 2017 14:54:38 -0700 | 3 | Date: Fri, 7 Jul 2017 14:54:38 -0700 |
4 | Subject: [PATCH] chromium: musl: linux != glibc, make the distinction | 4 | Subject: [PATCH] chromium: musl: linux != glibc, make the distinction |
@@ -9,12 +9,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
10 | 10 | ||
11 | diff --git a/chromium/base/allocator/allocator_check.cc b/chromium/base/allocator/allocator_check.cc | 11 | diff --git a/chromium/base/allocator/allocator_check.cc b/chromium/base/allocator/allocator_check.cc |
12 | index 5a0564d2f3..8c2dc6491d 100644 | 12 | index 9cd5d22..1e70095 100644 |
13 | --- a/chromium/base/allocator/allocator_check.cc | 13 | --- a/chromium/base/allocator/allocator_check.cc |
14 | +++ b/chromium/base/allocator/allocator_check.cc | 14 | +++ b/chromium/base/allocator/allocator_check.cc |
15 | @@ -21,7 +21,7 @@ bool IsAllocatorInitialized() { | 15 | @@ -27,7 +27,7 @@ bool IsAllocatorInitialized() { |
16 | #if defined(OS_WIN) && defined(ALLOCATOR_SHIM) | 16 | // Set by allocator_shim_override_ucrt_symbols_win.h when the |
17 | // Set by allocator_shim_win.cc when the shimmed _set_new_mode() is called. | 17 | // shimmed _set_new_mode() is called. |
18 | return g_is_win_shim_layer_initialized; | 18 | return g_is_win_shim_layer_initialized; |
19 | -#elif defined(OS_LINUX) && defined(USE_TCMALLOC) && \ | 19 | -#elif defined(OS_LINUX) && defined(USE_TCMALLOC) && \ |
20 | +#elif defined(__GLIBC__) && defined(USE_TCMALLOC) && \ | 20 | +#elif defined(__GLIBC__) && defined(USE_TCMALLOC) && \ |
diff --git a/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch b/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch index f1cc205b..652b89ec 100644 --- a/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch +++ b/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch | |||
@@ -1,16 +1,16 @@ | |||
1 | From 72a77c994434ecb708b2790ba9efaf1decc02503 Mon Sep 17 00:00:00 2001 | 1 | From d42b48975e92cfc4510030315ad8093bece4b7c5 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 7 Jul 2017 16:41:23 -0700 | 3 | Date: Fri, 7 Jul 2017 16:41:23 -0700 |
4 | Subject: [PATCH] chromium: musl: Adjust default pthread stack size | 4 | Subject: [PATCH] chromium: musl: Adjust default pthread stack size |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | --- | 7 | --- |
8 | chromium/base/threading/platform_thread_linux.cc | 3 ++- | 8 | chromium/base/threading/platform_thread_linux.cc | 3 ++- |
9 | chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | 4 ++-- | 9 | chromium/third_party/WebKit/Source/platform/wtf/StackUtil.cpp | 4 ++-- |
10 | 2 files changed, 4 insertions(+), 3 deletions(-) | 10 | 2 files changed, 4 insertions(+), 3 deletions(-) |
11 | 11 | ||
12 | diff --git a/chromium/base/threading/platform_thread_linux.cc b/chromium/base/threading/platform_thread_linux.cc | 12 | diff --git a/chromium/base/threading/platform_thread_linux.cc b/chromium/base/threading/platform_thread_linux.cc |
13 | index 92fbda5ee1..c41579d4ed 100644 | 13 | index 8d411ed..4b56cf3 100644 |
14 | --- a/chromium/base/threading/platform_thread_linux.cc | 14 | --- a/chromium/base/threading/platform_thread_linux.cc |
15 | +++ b/chromium/base/threading/platform_thread_linux.cc | 15 | +++ b/chromium/base/threading/platform_thread_linux.cc |
16 | @@ -175,7 +175,8 @@ void TerminateOnThread() {} | 16 | @@ -175,7 +175,8 @@ void TerminateOnThread() {} |
@@ -23,25 +23,25 @@ index 92fbda5ee1..c41579d4ed 100644 | |||
23 | #else | 23 | #else |
24 | // ThreadSanitizer bloats the stack heavily. Evidence has been that the | 24 | // ThreadSanitizer bloats the stack heavily. Evidence has been that the |
25 | // default stack size isn't enough for some browser tests. | 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 | 26 | diff --git a/chromium/third_party/WebKit/Source/platform/wtf/StackUtil.cpp b/chromium/third_party/WebKit/Source/platform/wtf/StackUtil.cpp |
27 | index 1d164f510a..3358deb256 100644 | 27 | index 13c3f90..07308e0 100644 |
28 | --- a/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | 28 | --- a/chromium/third_party/WebKit/Source/platform/wtf/StackUtil.cpp |
29 | +++ b/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | 29 | +++ b/chromium/third_party/WebKit/Source/platform/wtf/StackUtil.cpp |
30 | @@ -68,7 +68,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() { | 30 | @@ -28,7 +28,7 @@ size_t GetUnderestimatedStackSize() { |
31 | // FIXME: On Mac OSX and Linux, this method cannot estimate stack size | 31 | // FIXME: On Mac OSX and Linux, this method cannot estimate stack size |
32 | // correctly for the main thread. | 32 | // correctly for the main thread. |
33 | 33 | ||
34 | -#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD) | 34 | -#if defined(__GLIBC__) || defined(OS_ANDROID) || defined(OS_FREEBSD) || \ |
35 | +#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD) | 35 | +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FREEBSD) || \ |
36 | defined(OS_FUCHSIA) | ||
36 | // pthread_getattr_np() can fail if the thread is not invoked by | 37 | // 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 | // pthread_create() (e.g., the main thread of webkit_unit_tests). |
38 | // If so, a conservative size estimate is returned. | 39 | @@ -96,7 +96,7 @@ size_t GetUnderestimatedStackSize() { |
39 | @@ -135,7 +135,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() { | ||
40 | } | 40 | } |
41 | 41 | ||
42 | void* StackFrameDepth::getStackStart() { | 42 | void* GetStackStart() { |
43 | -#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD) | 43 | -#if defined(__GLIBC__) || defined(OS_ANDROID) || defined(OS_FREEBSD) || \ |
44 | +#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD) | 44 | +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FREEBSD) || \ |
45 | defined(OS_FUCHSIA) | ||
45 | pthread_attr_t attr; | 46 | pthread_attr_t attr; |
46 | int error; | 47 | int error; |
47 | #if OS(FREEBSD) | ||