Define llvm::thread::DefaultStackSize to 4 megabytes on AIX
authorWael Yehia <wyehia@ca.ibm.com>
Thu, 1 Jun 2023 19:56:07 +0000 (15:56 -0400)
committerWael Yehia <wyehia@ca.ibm.com>
Wed, 19 Jul 2023 18:57:55 +0000 (18:57 +0000)
commitf94608a164896e7108de2a8647285cc7d429f17b
tree05bf4e74bedd090720feff221630b6d6d705169f
parentaae2eaae2cefd3132059925c4592276defdb1faa
Define llvm::thread::DefaultStackSize to 4 megabytes on AIX

Link time thinLTO spawns pthreads to parallelize optimization and
codegen of the input bitcode files. On AIX, the default pthread
stack size limit is ~192k for 64-bit programs; insufficient for a
normal LLVM compilation.

Reviewed By: ZarkoCA, MaskRay

Differential Revision: https://reviews.llvm.org/D155731
llvm/lib/Support/Threading.cpp