EricWF added a comment. I don't see anything wrong with this, but I only know libc++ and not LLDB. > libc++'s atomic does not play well with gcc on linux It should... Can you elaborate on this issue? I suspect this may be a libc++ bug. https://reviews.llvm.org/D30984