diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-12-19 15:46:24 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-12-19 21:01:04 +0100 |
commit | e2485db796656beda0c45fc60aed2bb66d36070f (patch) | |
tree | ff82059197063498fe3e355b683776ff8a67b76f /community/chromium/default-pthread-stacksize.patch | |
parent | c40c42dae6e2da6c0bb0ce52f23dad837b330229 (diff) | |
download | aports-e2485db796656beda0c45fc60aed2bb66d36070f.tar.bz2 aports-e2485db796656beda0c45fc60aed2bb66d36070f.tar.xz |
community/chromium: upgrade to 71.0.3578.98
Diffstat (limited to 'community/chromium/default-pthread-stacksize.patch')
-rw-r--r-- | community/chromium/default-pthread-stacksize.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/community/chromium/default-pthread-stacksize.patch b/community/chromium/default-pthread-stacksize.patch index 75b50479e5..16e4d21e6e 100644 --- a/community/chromium/default-pthread-stacksize.patch +++ b/community/chromium/default-pthread-stacksize.patch @@ -6,19 +6,18 @@ + return (1 << 23); --- chrome/app/shutdown_signal_handlers_posix.cc.orig +++ chrome/app/shutdown_signal_handlers_posix.cc -@@ -184,12 +184,20 @@ +@@ -184,11 +184,19 @@ g_shutdown_pipe_read_fd = pipefd[0]; g_shutdown_pipe_write_fd = pipefd[1]; - #if !defined(ADDRESS_SANITIZER) && !defined(KEEP_SHADOW_STACKS) + #if !defined(ADDRESS_SANITIZER) +# if defined(__GLIBC__) const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2; +# else + const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2 * 8; // match up musls 2k PTHREAD_STACK_MIN with glibcs 16k +# endif #else - // ASan instrumentation and -finstrument-functions (used for keeping the - // shadow stacks) bloat the stack frames, so we need to increase the stack - // size to avoid hitting the guard page. + // ASan instrumentation bloats the stack frames, so we need to increase the + // stack size to avoid hitting the guard page. +# if defined(__GLIBC__) const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4; +# else @@ -27,3 +26,4 @@ #endif ShutdownDetector* detector = new ShutdownDetector( g_shutdown_pipe_read_fd, shutdown_callback, task_runner); + |