[libcxx-commits] [libcxx] [libc++] Fix bug in atomic_ref's calculation of lock_free-ness (PR #99570)

James Y Knight via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 19 09:27:51 PDT 2024


jyknight wrote:

Yes, you got that right. The issue is that `LockFreeStatusInfo` as implemented here cannot actually tell you anything about alignment requirements. I think the code it has which attempts it should just be removed, not adjusted -- it's up to the callers to handle that as they wish.

After we make the change to upgrade required-alignment of atomic_ref, then this test should start working, because `atomic_ref<IntArr2>` will have its alignment upgraded to 8.

https://github.com/llvm/llvm-project/pull/99570


More information about the libcxx-commits mailing list