diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:03:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:04:23 +0000 |
commit | 7fa27ce4a07f19b07799a767fc29416f3b625afb (patch) | |
tree | 27825c83636c4de341eb09a74f49f5d38a15d165 /llvm/lib/Support/Threading.cpp | |
parent | e3b557809604d036af6e00c60f012c2025b59a5e (diff) |
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
-rw-r--r-- | llvm/lib/Support/Threading.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp index 923935bbca10..7cc7ba44cc72 100644 --- a/llvm/lib/Support/Threading.cpp +++ b/llvm/lib/Support/Threading.cpp @@ -83,6 +83,11 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const { // the same interface as std::thread but requests the same stack size as the // main thread (8MB) before creation. const std::optional<unsigned> llvm::thread::DefaultStackSize = 8 * 1024 * 1024; +#elif defined(_AIX) + // On AIX, the default pthread stack size limit is ~192k for 64-bit programs. + // This limit is easily reached when doing link-time thinLTO. AIX library + // developers have used 4MB, so we'll do the same. +const std::optional<unsigned> llvm::thread::DefaultStackSize = 4 * 1024 * 1024; #else const std::optional<unsigned> llvm::thread::DefaultStackSize; #endif |