[libc-commits] [libc] [libc] fix tls teardown while being used (PR #108229)

via libc-commits libc-commits at lists.llvm.org
Wed Sep 11 07:12:15 PDT 2024


================
@@ -16,6 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
 
 constinit ExitCallbackList atexit_callbacks;
 Mutex handler_list_mtx(false, false, false, false);
+[[gnu::weak]] extern void teardown_main_tls();
----------------
lntue wrote:

is this function also available in other platforms / libc?

https://github.com/llvm/llvm-project/pull/108229


More information about the libc-commits mailing list