diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-05-08 12:19:35 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-05-08 12:44:13 -0700 |
commit | b5eb55d19d7b5d8fa9a5302c8d0211cd70b8c4d4 (patch) | |
tree | 51d983ef0d9f448c0a9aa9446f70222ea4215a5a /compiler-rt | |
parent | 51eeea67c67cb3e622730ee1fa8c9b939268429b (diff) | |
download | llvm-b5eb55d19d7b5d8fa9a5302c8d0211cd70b8c4d4.tar.gz |
[NFC][LSAN] Move GetAdditionalThreadContextPtrsLocked
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/lsan/lsan_allocator.cpp | 9 | ||||
-rw-r--r-- | compiler-rt/lib/lsan/lsan_thread.cpp | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/compiler-rt/lib/lsan/lsan_allocator.cpp b/compiler-rt/lib/lsan/lsan_allocator.cpp index ee7facac6ea7..8dfd4aa43494 100644 --- a/compiler-rt/lib/lsan/lsan_allocator.cpp +++ b/compiler-rt/lib/lsan/lsan_allocator.cpp @@ -339,15 +339,6 @@ IgnoreObjectResult IgnoreObject(const void *p) { } } -void GetAdditionalThreadContextPtrsLocked(InternalMmapVector<uptr> *ptrs) { - // This function can be used to treat memory reachable from `tctx` as live. - // This is useful for threads that have been created but not yet started. - - // This is currently a no-op because the LSan `pthread_create()` interceptor - // blocks until the child thread starts which keeps the thread's `arg` pointer - // live. -} - } // namespace __lsan using namespace __lsan; diff --git a/compiler-rt/lib/lsan/lsan_thread.cpp b/compiler-rt/lib/lsan/lsan_thread.cpp index 9da42f32e06b..5a00973ef802 100644 --- a/compiler-rt/lib/lsan/lsan_thread.cpp +++ b/compiler-rt/lib/lsan/lsan_thread.cpp @@ -92,4 +92,13 @@ void GetRunningThreadsLocked(InternalMmapVector<tid_t> *threads) { threads); } +void GetAdditionalThreadContextPtrsLocked(InternalMmapVector<uptr> *ptrs) { + // This function can be used to treat memory reachable from `tctx` as live. + // This is useful for threads that have been created but not yet started. + + // This is currently a no-op because the LSan `pthread_create()` interceptor + // blocks until the child thread starts which keeps the thread's `arg` pointer + // live. +} + } // namespace __lsan |