diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-03 15:18:58 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-03 15:20:01 +0200 |
commit | 30d0d0c694dc81ea99b750d6b88e19c3c45f57be (patch) | |
tree | 4fe0bbeda63960fb85a6fd46b6d793a975846052 /community/chromium/default-pthread-stacksize.patch | |
parent | 48d9ebf65fd57f1c2257c88017886d8777a3826f (diff) | |
download | aports-30d0d0c694dc81ea99b750d6b88e19c3c45f57be.tar.bz2 aports-30d0d0c694dc81ea99b750d6b88e19c3c45f57be.tar.xz |
community/chromium: upgrade to 57.0.2987.133
Diffstat (limited to 'community/chromium/default-pthread-stacksize.patch')
-rw-r--r-- | community/chromium/default-pthread-stacksize.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/community/chromium/default-pthread-stacksize.patch b/community/chromium/default-pthread-stacksize.patch index fca919b1f3..2b14c7bd43 100644 --- a/community/chromium/default-pthread-stacksize.patch +++ b/community/chromium/default-pthread-stacksize.patch @@ -4,3 +4,26 @@ - return 0; + // use 2mb to avoid running out of space + return (2 * 1024 * 1024); +--- chrome/browser/chrome_browser_main_posix.cc.orig ++++ chrome/browser/chrome_browser_main_posix.cc +@@ -276,12 +276,20 @@ + g_shutdown_pipe_read_fd = pipefd[0]; + g_shutdown_pipe_write_fd = pipefd[1]; + #if !defined(ADDRESS_SANITIZER) && !defined(KEEP_SHADOW_STACKS) ++# 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. ++# if defined(__GLIBC__) + const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4; ++# else ++ const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4 * 8; // match up musls 2k PTHREAD_STACK_MIN with glibcs 16k ++# endif + #endif + // TODO(viettrungluu,willchan): crbug.com/29675 - This currently leaks, so + // if you change this, you'll probably need to change the suppression. |