Skip to content

Commit

Permalink
limit num threads under TSAN for ThreadPoolExecutorTest.AddPerf
Browse files Browse the repository at this point in the history
Summary: TSAN appears to deadlock with increasingly high probability past a certain point.

Reviewed By: Gownta

Differential Revision: D64451812

fbshipit-source-id: c3840c69b12e3cfdf2ff072e21685bf143525bad
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Oct 16, 2024
1 parent a53e741 commit 4548678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folly/executors/test/ThreadPoolExecutorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ TEST(ThreadPoolExecutorTest, AddPerf) {
auto queue = std::make_unique<
UnboundedBlockingQueue<CPUThreadPoolExecutor::CPUTask>>();
CPUThreadPoolExecutor e(
1000,
kIsSanitizeThread ? 25 : 1000,
std::move(queue),
std::make_shared<NamedThreadFactory>("CPUThreadPool"));
e.setThreadDeathTimeout(std::chrono::milliseconds(1));
Expand Down

0 comments on commit 4548678

Please sign in to comment.