mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 10:06:07 +00:00
[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:
parent
33aba5d0d0
commit
f547c173f2
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,8 +92,4 @@ void RunCallbackForEachThreadLocked(
|
||||
GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked(cb, arg);
|
||||
}
|
||||
|
||||
void FinishThreadLocked(u32 tid) {
|
||||
GetLsanThreadRegistryLocked()->FinishThread(tid);
|
||||
}
|
||||
|
||||
} // namespace __lsan
|
||||
|
Loading…
x
Reference in New Issue
Block a user