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/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.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/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch')
| -rw-r--r-- | recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch | 45 |
1 files changed, 45 insertions, 0 deletions
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 new file mode 100644 index 00000000..bf1f1891 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | From e695f37fc52defd1b96664b003444692e9b6cb65 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 7 Jul 2017 14:09:06 -0700 | ||
| 4 | Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux | ||
| 5 | |||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 7 | --- | ||
| 8 | chromium/base/trace_event/malloc_dump_provider.cc | 3 ++- | ||
| 9 | chromium/content/child/content_child_helpers.cc | 2 +- | ||
| 10 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | 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 | ||
| 14 | --- a/chromium/base/trace_event/malloc_dump_provider.cc | ||
| 15 | +++ b/chromium/base/trace_event/malloc_dump_provider.cc | ||
| 16 | @@ -210,6 +210,7 @@ MallocDumpProvider::~MallocDumpProvider() {} | ||
| 17 | // the current process. | ||
| 18 | bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, | ||
| 19 | ProcessMemoryDump* pmd) { | ||
| 20 | +#if defined(__GLIBC__) | ||
| 21 | size_t total_virtual_size = 0; | ||
| 22 | size_t resident_size = 0; | ||
| 23 | size_t allocated_objects_size = 0; | ||
| 24 | @@ -321,7 +322,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args, | ||
| 25 | pmd->DumpHeapUsage(metrics_by_context, overhead, "malloc"); | ||
| 26 | } | ||
| 27 | tid_dumping_heap_ = kInvalidThreadId; | ||
| 28 | - | ||
| 29 | +#endif // __GLIBC__ | ||
| 30 | return true; | ||
| 31 | } | ||
| 32 | |||
| 33 | diff --git a/chromium/content/child/content_child_helpers.cc b/chromium/content/child/content_child_helpers.cc | ||
| 34 | index 7ddeb4d16a..b8c73b09c5 100644 | ||
| 35 | --- a/chromium/content/child/content_child_helpers.cc | ||
| 36 | +++ b/chromium/content/child/content_child_helpers.cc | ||
| 37 | @@ -25,7 +25,7 @@ namespace content { | ||
| 38 | // though, this provides only a partial and misleading value. | ||
| 39 | // Unfortunately some telemetry benchmark rely on it and these need to | ||
| 40 | // be refactored before getting rid of this. See crbug.com/581365 . | ||
| 41 | -#if defined(OS_LINUX) || defined(OS_ANDROID) | ||
| 42 | +#if defined(__GLIBC__) || defined(OS_ANDROID) | ||
| 43 | size_t GetMemoryUsageKB() { | ||
| 44 | struct mallinfo minfo = mallinfo(); | ||
| 45 | uint64_t mem_usage = | ||
