| 93 | } |
| 94 | |
| 95 | static void NTAPI cbm_thread_detach_callback(PVOID handle, DWORD reason, PVOID reserved) { |
| 96 | (void)handle; |
| 97 | (void)reserved; |
| 98 | if (reason == DLL_THREAD_DETACH) { |
| 99 | cbm_memev_thread_end(); /* waste-sanitizer thread state; no-op outside that build */ |
| 100 | } |
| 101 | if (reason == DLL_THREAD_DETACH && thread_release_heap_enabled()) { |
| 102 | mi_thread_done(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /* Park the callback in .CRT$XLB, the table the loader walks. The linker only |
| 107 | * emits a TLS directory when _tls_used is referenced, so anchor it. */ |
nothing calls this directly
no test coverage detected