[libcxx-commits] [PATCH] D155278: [libc++][mingw] TLS cleanup on windows

Jessica Clarke via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 14 03:35:57 PDT 2023


jrtc27 added a comment.

Isn't atexit for process termination? I'd be surprised if it really does run during FreeLibrary. The normal (/documented) approach is to handle DLL_PROCESS_DETACH inside DllMain, but many applications also seem to use a C++ destructor, which will compose better with static linking.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155278/new/

https://reviews.llvm.org/D155278



More information about the libcxx-commits mailing list