diff options
author | David Zarzycki <dave@znu.io> | 2020-05-09 11:10:41 -0400 |
---|---|---|
committer | David Zarzycki <dave@znu.io> | 2020-05-09 11:11:26 -0400 |
commit | 4f4ce13944b88bcd678e615d340c21ea1cf5d3ec (patch) | |
tree | e940c39bb1877ce04019f0f4b4d7384bc4a92418 /llvm/lib/Analysis/CodeMetrics.cpp | |
parent | 0b9783350b3a9644dc6e0ba94c0f6a87ca45cb36 (diff) | |
download | llvm-4f4ce13944b88bcd678e615d340c21ea1cf5d3ec.zip llvm-4f4ce13944b88bcd678e615d340c21ea1cf5d3ec.tar.gz llvm-4f4ce13944b88bcd678e615d340c21ea1cf5d3ec.tar.bz2 |
[libcxx testing] Make three locking tests more reliable
The challenge with measuring time in tests is that slow and/or busy
machines can cause tests to fail in unexpected ways. After this change,
three tests should be much more robust. The only remaining and tiny race
that I can think of is preemption after `--countDown`. That being said,
the race isn't fixable because the standard library doesn't provide a
way to count threads that are waiting to acquire a lock.
Reviewers: ldionne, EricWF, howard.hinnant, mclow.lists, #libc
Reviewed By: ldionne, #libc
Subscribers: dexonsmith, jfb, broadwaylamb, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D79406
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions