[LSAN][NFC] Removed FinishThreadLocked from the LSAN interface.

It is only used in the LSAN specific part.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D140109
This commit is contained in:
Kirill Stoimenov 2023-01-06 00:08:59 +00:00
parent 33aba5d0d0
commit f547c173f2
3 changed files with 1 additions and 6 deletions

View File

@ -108,7 +108,6 @@ void ForEachExtraStackRange(tid_t os_id, RangeIteratorCallback callback,
void RunCallbackForEachThreadLocked(__sanitizer::ThreadRegistry::ThreadCallback cb,
void *arg);
void FinishThreadLocked(u32 tid);
//// --------------------------------------------------------------------------
//// Allocator prototypes.

View File

@ -110,7 +110,7 @@ void __sanitizer_thread_create_hook(void *hook, thrd_t thread, int error) {
// On success, there is nothing to do here.
if (error != thrd_success) {
// Clean up the thread registry for the thread creation that didn't happen.
FinishThreadLocked(tid);
GetLsanThreadRegistryLocked()->FinishThread(tid);
}
}

View File

@ -92,8 +92,4 @@ void RunCallbackForEachThreadLocked(
GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked(cb, arg);
}
void FinishThreadLocked(u32 tid) {
GetLsanThreadRegistryLocked()->FinishThread(tid);
}
} // namespace __lsan