[libc-commits] [libc] 5d69233 - [libc][NFC] Reduce the number of threads created in cnd_test to 1000 form 10000.
    Siva Chandra Reddy via libc-commits 
    libc-commits at lists.llvm.org
       
    Sat Mar 11 23:11:28 PST 2023
    
    
  
Author: Siva Chandra Reddy
Date: 2023-03-12T07:08:58Z
New Revision: 5d6923345320a07b2afc8c69d82c02492f782a2f
URL: https://github.com/llvm/llvm-project/commit/5d6923345320a07b2afc8c69d82c02492f782a2f
DIFF: https://github.com/llvm/llvm-project/commit/5d6923345320a07b2afc8c69d82c02492f782a2f.diff
LOG: [libc][NFC] Reduce the number of threads created in cnd_test to 1000 form 10000.
The high number of 10000 threads was choking bot builders running on boards with
very small memory.
Added: 
    
Modified: 
    libc/test/integration/src/threads/cnd_test.cpp
Removed: 
    
################################################################################
diff  --git a/libc/test/integration/src/threads/cnd_test.cpp b/libc/test/integration/src/threads/cnd_test.cpp
index 5869df985ff66..ecc04ffa780eb 100644
--- a/libc/test/integration/src/threads/cnd_test.cpp
+++ b/libc/test/integration/src/threads/cnd_test.cpp
@@ -35,7 +35,7 @@ namespace wait_notify_broadcast_test {
 // |broadcast_count| by 1 before they start waiting on |broadcast_cnd|, and
 // decrement it by 1 after getting signalled on |broadcast_cnd|.
 
-constexpr unsigned int THRD_COUNT = 10000;
+constexpr unsigned int THRD_COUNT = 1000;
 
 static __llvm_libc::cpp::Atomic<unsigned int> broadcast_count(0);
 static cnd_t broadcast_cnd, threads_ready_cnd;
        
    
    
More information about the libc-commits
mailing list