Skip to content

Instantly share code, notes, and snippets.

@tapthaker
Created June 15, 2022 00:24
Show Gist options
  • Save tapthaker/e9fef745c84f7663731c6ae285991aca to your computer and use it in GitHub Desktop.
Save tapthaker/e9fef745c84f7663731c6ae285991aca to your computer and use it in GitHub Desktop.
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
index 04a1a9e19428..4198142ff0c6 100644
--- a/llvm/lib/Support/Threading.cpp
+++ b/llvm/lib/Support/Threading.cpp
@@ -87,7 +87,7 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
// which is not enough for some/many normal LLVM compilations. This implements
// the same interface as std::thread but requests the same stack size as the
// main thread (8MB) before creation.
-const llvm::Optional<unsigned> llvm::thread::DefaultStackSize = 8 * 1024 * 1024;
+const llvm::Optional<unsigned> llvm::thread::DefaultStackSize = 256 * 1024 * 1024;
#else
const llvm::Optional<unsigned> llvm::thread::DefaultStackSize = None;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment