https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99613
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't see a problem with that. __cxa_guard_acquire should succeed just once unless the constructor throws (but if it throws, then __cxa_atexit won't be called by that thread where it throwed and so will be called by some other one that runs the constructor afterwards.