mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
--- base/threading/platform_thread_linux.cc.orig
|
|
+++ base/threading/platform_thread_linux.cc
|
|
@@ -99 +99,2 @@ size_t GetDefaultThreadStackSize(const p
|
|
- return 0;
|
|
+ // use 8mb like glibc to avoid running out of space
|
|
+ return (1 << 23);
|
|
--- 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.
|