[compiler-rt] [Asan] Ensure minimum stack size 128KB in ThreadedStressStackReuseTest (PR #165198)

Riyaz Ahmad via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 05:46:12 PST 2025


================
@@ -1115,15 +1115,30 @@ TEST(AddressSanitizer, StressStackReuseTest) {
   LotsOfStackReuse();
 }
 
+// On some platform (ex: AIX), the default thread stack size (~96 KB) is
+// insufficient for this test and can lead to stack overflows. The test
+// has been updated to accomodate platforms with smaller default thread
+// stack sizes.
+#define MIN_STACK_SIZE (128 * 1024)  //  Minimum stack size to use: 128 KB
----------------
riyaz86a wrote:

Thanks for the comment, I have updated the comment  accordingly.

https://github.com/llvm/llvm-project/pull/165198


More information about the llvm-commits mailing list