[compiler-rt] r289971 - Follow-up for r289831: Lower the unjoined thread count to 100 in the libcxx-future.mm testcase.
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 10:44:01 PST 2016
Author: kuba.brecka
Date: Fri Dec 16 12:44:01 2016
New Revision: 289971
URL: http://llvm.org/viewvc/llvm-project?rev=289971&view=rev
Log:
Follow-up for r289831: Lower the unjoined thread count to 100 in the libcxx-future.mm testcase.
Turns out 1000 unjoined threads are a bit too rough in certain environments.
Modified:
compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm?rev=289971&r1=289970&r2=289971&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm Fri Dec 16 12:44:01 2016
@@ -12,7 +12,7 @@ int main(int argc, const char *argv[]) {
std::vector<std::thread> threads;
- for (int i = 0; i < 1000; i++) {
+ for (int i = 0; i < 100; i++) {
std::packaged_task<int(void)> task(my_task);
std::future<int> future = task.get_future();
threads.push_back(std::thread(std::move(task)));
More information about the llvm-commits
mailing list