We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517934a commit eaec6c9Copy full SHA for eaec6c9
libc/src/stdlib/exit.cpp
@@ -14,6 +14,12 @@
14
namespace LIBC_NAMESPACE_DECL {
15
16
extern "C" void __cxa_finalize(void *);
17
+
18
+// exit needs to clean up TLS and call associated destructors.
19
+// TODO: Strictly speaking, it is not valid to call exit in overlay mode
20
+// as we have no way to ensure system libc will call the TLS destructors.
21
+// We should run exit related tests in hermetic mode but this is currently
22
+// blocked by https://github.com/llvm/llvm-project/issues/133925.
23
extern "C" [[gnu::weak]] void __cxa_thread_finalize();
24
25
// TODO: use recursive mutex to protect this routine.
0 commit comments