Export of internal Abseil changes.
-- ee644a89fb1429d9337852690a01182853f68964 by Derek Mauro <dmauro@google.com>: Lower the thread limit in the Mutex benchmark on some platforms. https://github.com/abseil/abseil-cpp/issues/147 PiperOrigin-RevId: 205663768 GitOrigin-RevId: ee644a89fb1429d9337852690a01182853f68964 Change-Id: Ic5db4061809aa65f73e6a63dba90b2554376b38c
This commit is contained in:
parent
7aa411ceaf
commit
9e060686d1
1 changed files with 4 additions and 4 deletions
|
@ -74,11 +74,11 @@ void BM_ConditionWaiters(benchmark::State& state) {
|
||||||
mu.Unlock();
|
mu.Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef THREAD_SANITIZER
|
// Some configurations have higher thread limits than others.
|
||||||
// ThreadSanitizer can't handle 8192 threads.
|
#if defined(__linux__) && !defined(THREAD_SANITIZER)
|
||||||
constexpr int kMaxConditionWaiters = 2048;
|
|
||||||
#else
|
|
||||||
constexpr int kMaxConditionWaiters = 8192;
|
constexpr int kMaxConditionWaiters = 8192;
|
||||||
|
#else
|
||||||
|
constexpr int kMaxConditionWaiters = 1024;
|
||||||
#endif
|
#endif
|
||||||
BENCHMARK(BM_ConditionWaiters)->RangePair(0, 2, 1, kMaxConditionWaiters);
|
BENCHMARK(BM_ConditionWaiters)->RangePair(0, 2, 1, kMaxConditionWaiters);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue