diff options
author | Hui <hui.xie1990@gmail.com> | 2024-06-01 21:12:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 21:12:04 +0100 |
commit | 6e22b538da4b09efb10a59582a3f43d8128ae7d1 (patch) | |
tree | 5c163126046c57b38f8049d88032982e4c1a7eed /libcxx/src/algorithm.cpp | |
parent | 2b2ce50fe843b5b550806a0ab15b06cd5c405d48 (diff) | |
download | llvm-6e22b538da4b09efb10a59582a3f43d8128ae7d1.zip llvm-6e22b538da4b09efb10a59582a3f43d8128ae7d1.tar.gz llvm-6e22b538da4b09efb10a59582a3f43d8128ae7d1.tar.bz2 |
[libc++] Fix `std::atomic::wait` ulock wait UL_COMPARE_AND_WAIT64 (#92783)
in `atomic::wait`, when we call the platform wait ulock_wait , we are
using UL_COMPARE_AND_WAIT. But we should use UL_COMPARE_AND_WAIT64
instead as the address we are waiting for is a 64 bit integer.
fixes https://github.com/llvm/llvm-project/issues/85107
It is rather hard to test directly because in `atomic::wait`, before
calling into the platform wait, our c++ code has some poll logic which
checks the value not changing. Thus in this patch, the test is using the
internal function.
Diffstat (limited to 'libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions