https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104101
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:c3861f79859d96777f86a24261fe639538fd2e1c commit r12-6708-gc3861f79859d96777f86a24261fe639538fd2e1c Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Jan 18 21:15:05 2022 +0000 libstdc++: Fix std::atomic<std::shared_ptr<T>> for AIX [PR104101] This fixes an on AIX. The lock function currently just spins, which should be changed to use back-off, and maybe then _M_val.wait(__current) when supported. libstdc++-v3/ChangeLog: PR libstdc++/104101 * include/bits/shared_ptr_atomic.h (_Sp_atomic::_Atomic_count::lock): Only use __thread_relax if __cpp_lib_atomic_wait is defined.