On Mon, 6 Jul 2026, LIU Hao wrote:
From 754e73941c305781640abe1c87de90a08b59e54b Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Wed, 1 Jul 2026 17:32:00 +0800
Subject: [PATCH] crt/tlsthrd: Do not run thread-local destructors upon
process
termination for win32 thread model
This is a reworked version of a556c6943c442465dc9a051bc6d3a6d452df4a1d that
affects only win32 thread model of GCC, where `__mingwthr_key_dtor()` is
called
by GCC runtime libraries to deallocate thread-local resources. This code
isn't
used by other codepaths.
Like `pthread_key_create()`, destructors that are registered by
`___w64_mingwthr_add_key_dtor()` should not be called upon process
termination.
Signed-off-by: LIU Hao <[email protected]>
---
mingw-w64-crt/crt/tlsthrd.c | 1 -
1 file changed, 1 deletion(-)
Thanks, I think this looks reasonable and well argumented.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public