On Wed, 28 Oct 2020, Liu Hao wrote:
在 2020/10/28 17:24, Martin Storsjö 写道:
For these cases, the TLS destructors are normally executed by
the callback set up by _register_thread_local_exe_atexit_callback,
but if this is bypassed (if exiting via _exit or ExitProcess),
skip these callbacks.
This differs from what MSVC does, but matches what the C++ standard
says should happen.
Signed-off-by: Martin Storsjö <[email protected]>
---
This series of patches look good to me.
Pushed patches 1-2 for now (that should be very benign and safe in any
case); patch 3 (changing how winpthreads clean up threads) is a bit more
risky, and the conclusion of this discussion was a bit fuzzy, but I can
push that one as well if others (Jeremy?) wants it in.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public