[PATCH] D65688: [AIX][test/Index] Set/propagate AIXTHREAD_STK for AIX
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 13 06:39:21 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL368690: [AIX][test/Index] Set/propagate AIXTHREAD_STK for AIX (authored by hubert.reinterpretcast, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65688/new/
https://reviews.llvm.org/D65688
Files:
cfe/trunk/test/Index/lit.local.cfg
Index: cfe/trunk/test/Index/lit.local.cfg
===================================================================
--- cfe/trunk/test/Index/lit.local.cfg
+++ cfe/trunk/test/Index/lit.local.cfg
@@ -0,0 +1,12 @@
+import platform
+
+# Some tests perform deep recursion, which requires a larger pthread stack size
+# than the relatively low default of 192 KiB for 64-bit processes on AIX. The
+# `AIXTHREAD_STK` environment variable provides a non-intrusive way to request
+# a larger pthread stack size for the tests. Various applications and runtime
+# libraries on AIX use a default pthread stack size of 4 MiB, so we will use
+# that as a default value here.
+if 'AIXTHREAD_STK' in os.environ:
+ config.environment['AIXTHREAD_STK'] = os.environ['AIXTHREAD_STK']
+elif platform.system() == 'AIX':
+ config.environment['AIXTHREAD_STK'] = '4194304'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65688.214824.patch
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190813/2c8042e0/attachment.bin>
More information about the cfe-commits
mailing list