[libcxx-commits] [libcxx] [libc++] Increase `atomic_ref`'s required alignment for small types (PR #99654)
James Y Knight via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 24 14:28:48 PDT 2024
jyknight wrote:
> What happens when the alignment requirement is not satisfied? Is it only that we will incorrectly report that the `atomic_ref` is always lock free when in reality it uses a lock under the hood due to the incorrect alignment?
On common platforms, you may get either silently-non-atomic accesses or a crash.
https://github.com/llvm/llvm-project/pull/99654
More information about the libcxx-commits
mailing list