[libcxx-commits] [clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Oct 11 06:07:23 PDT 2025
huixie90 wrote:
@efriedma-quic I found another problem. The way it works for non-power-of-two types is that, it creates temporary with power of two sizes and copy the original value into the memory then do the CAS. The problem is that the temporary was not zeroed. so the CAS and spuriously fail if the last unused bytes in the temporary has some different value. I have fixed this as well. see line 1436
https://github.com/llvm/llvm-project/pull/78707
More information about the libcxx-commits
mailing list