From 0e1e0ce556810ad5f9d45485e686f0653530516c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 2 Sep 2023 23:17:18 +0200 Subject: Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-17-init-19304-gd0b54bb50e51, the last commit before the upstream release/17.x branch was created. PR: 273753 MFC after: 1 month (cherry picked from commit 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e) --- contrib/llvm-project/llvm/lib/Support/Threading.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contrib/llvm-project/llvm/lib/Support/Threading.cpp') diff --git a/contrib/llvm-project/llvm/lib/Support/Threading.cpp b/contrib/llvm-project/llvm/lib/Support/Threading.cpp index f1b79cf4427a..07ada7a75bf2 100644 --- a/contrib/llvm-project/llvm/lib/Support/Threading.cpp +++ b/contrib/llvm-project/llvm/lib/Support/Threading.cpp @@ -94,6 +94,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 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 llvm::thread::DefaultStackSize = 4 * 1024 * 1024; #else const std::optional llvm::thread::DefaultStackSize; #endif -- cgit v1.2.3