diff --git a/compiler-rt/lib/gwp_asan/tests/recoverable.cpp b/compiler-rt/lib/gwp_asan/tests/recoverable.cpp --- a/compiler-rt/lib/gwp_asan/tests/recoverable.cpp +++ b/compiler-rt/lib/gwp_asan/tests/recoverable.cpp @@ -182,9 +182,6 @@ std::atomic StartingGun{false}; std::vector Threads; constexpr unsigned kNumThreads = 4; - if (std::thread::hardware_concurrency() < kNumThreads) { - GTEST_SKIP() << "Not enough threads to run this test"; - } char *Ptr = static_cast(AllocateMemory(*GPA)); diff --git a/compiler-rt/lib/gwp_asan/tests/thread_contention.cpp b/compiler-rt/lib/gwp_asan/tests/thread_contention.cpp --- a/compiler-rt/lib/gwp_asan/tests/thread_contention.cpp +++ b/compiler-rt/lib/gwp_asan/tests/thread_contention.cpp @@ -44,12 +44,8 @@ void runThreadContentionTest(unsigned NumThreads, unsigned NumIterations, gwp_asan::GuardedPoolAllocator *GPA) { - std::atomic StartingGun{false}; std::vector Threads; - if (std::thread::hardware_concurrency() < NumThreads) { - NumThreads = std::thread::hardware_concurrency(); - } for (unsigned i = 0; i < NumThreads; ++i) { Threads.emplace_back(asyncTask, GPA, &StartingGun, NumIterations);