From 454867848bfb87101cf6f96960a53d1860fa9c6b Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Wed, 16 Oct 2024 09:21:59 -0700 Subject: [PATCH] limit num threads under TSAN for ThreadPoolExecutorTest.AddPerf Summary: TSAN appears to deadlock with increasingly high probability past a certain point. Reviewed By: Gownta Differential Revision: D64451812 fbshipit-source-id: c3840c69b12e3cfdf2ff072e21685bf143525bad --- folly/executors/test/ThreadPoolExecutorTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/executors/test/ThreadPoolExecutorTest.cpp b/folly/executors/test/ThreadPoolExecutorTest.cpp index a78e1b23240..8fa64dab8e6 100644 --- a/folly/executors/test/ThreadPoolExecutorTest.cpp +++ b/folly/executors/test/ThreadPoolExecutorTest.cpp @@ -1023,7 +1023,7 @@ TEST(ThreadPoolExecutorTest, AddPerf) { auto queue = std::make_unique< UnboundedBlockingQueue>(); CPUThreadPoolExecutor e( - 1000, + kIsSanitizeThread ? 25 : 1000, std::move(queue), std::make_shared("CPUThreadPool")); e.setThreadDeathTimeout(std::chrono::milliseconds(1));