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

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Wed Sep 11 07:25:20 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();
----------------
SchrodingerZhu wrote:

GPU may not define it.

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


More information about the libc-commits mailing list