[compiler-rt] [asan][win] Fix CreateThread leak (PR #126738)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 15 21:24:39 PST 2025
================
@@ -143,9 +143,11 @@ static thread_return_t THREAD_CALLING_CONV asan_thread_start(void *arg) {
ThreadStartParams params;
t->GetStartData(params);
+ // The ExitThread will end the current thread, causing destroy to be unable to
+ // be called.
+ t->Destroy();
----------------
GkvJwa wrote:
If it's just a dynamic library, can modify ```asan_thread_exit```. Here intercept ```ExitThread``` for general purpose
You can review it when you have time
https://github.com/llvm/llvm-project/pull/126738
More information about the llvm-commits
mailing list