[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
Fri Jul 19 07:36:45 PDT 2024
================
@@ -95,10 +95,14 @@ struct __atomic_ref_base {
friend struct __atomic_waitable_traits<__atomic_ref_base<_Tp>>;
+ // require types that are 1, 2, 4, 8, or 16 bytes in length to be aligned to at least their size to allow them to be
----------------
jyknight wrote:
I'd say "to be potentially used lock-free". We don't know if they _actually_ can or not on a given target.
https://github.com/llvm/llvm-project/pull/99654
More information about the libcxx-commits
mailing list