Re: [PATCH] libstdc++: eh_globals: gthreads: reset _S_init before deleting key

2022-06-21 Thread Jonathan Wakely via Gcc-patches
On Tue, 21 Jun 2022 at 07:04, Alexandre Oliva via Libstdc++ wrote: > > > Clear __eh_globals_init's _S_init in the dtor before deleting the > gthread key. > > This ensures that, in case any code involved in deleting the key > interacts with eh_globals, the key that is being deleted won't be > used,

[PATCH] libstdc++: eh_globals: gthreads: reset _S_init before deleting key

2022-06-20 Thread Alexandre Oliva via Gcc-patches
Clear __eh_globals_init's _S_init in the dtor before deleting the gthread key. This ensures that, in case any code involved in deleting the key interacts with eh_globals, the key that is being deleted won't be used, and the non-thread-specific eh_globals fallback will. Regstrapped on x86_64-lin