summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>2021-11-04 17:58:33 -0400
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>2021-11-05 15:57:46 -0400
commitc92a253cf0ddcf905707b4e9265b42570ce409d9 (patch)
treefcaab6a9c27f80520298ee1223e5393677f10b78 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentbaa820c510d027911b464ee018e15217d09568da (diff)
[libc++] Fix hang in counting_semaphore::try_acquire
Before this patch, `try_acquire` blocks instead of returning false. This is because `__libcpp_thread_poll_with_backoff` interprets zero as meaning infinite, causing `try_acquire` to wait indefinitely. Thanks to Pablo Busse (pabusse) for the patch! Differential Revision: https://reviews.llvm.org/D98334
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions