[compiler-rt] dd9a34f - [nfc][lsan] Move up vectors cleanup (#112608)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 18:30:23 PDT 2024
Author: Vitaly Buka
Date: 2024-10-16T18:30:20-07:00
New Revision: dd9a34fd7e6cb190d44d310a610e9f959e2e599f
URL: https://github.com/llvm/llvm-project/commit/dd9a34fd7e6cb190d44d310a610e9f959e2e599f
DIFF: https://github.com/llvm/llvm-project/commit/dd9a34fd7e6cb190d44d310a610e9f959e2e599f.diff
LOG: [nfc][lsan] Move up vectors cleanup (#112608)
Added:
Modified:
compiler-rt/lib/lsan/lsan_common.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 329e29477d0723..6510e0ac3bf6ab 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -405,6 +405,8 @@ static void ProcessThreads(SuspendedThreadsList const &suspended_threads,
InternalMmapVector<uptr> registers;
InternalMmapVector<Range> extra_ranges;
for (uptr i = 0; i < suspended_threads.ThreadCount(); i++) {
+ registers.clear();
+ extra_ranges.clear();
const tid_t os_id = static_cast<tid_t>(suspended_threads.GetThreadID(i));
LOG_THREADS("Processing thread %llu.\n", os_id);
uptr stack_begin, stack_end, tls_begin, tls_end, cache_begin, cache_end;
@@ -463,7 +465,6 @@ static void ProcessThreads(SuspendedThreadsList const &suspended_threads,
}
ScanRangeForPointers(stack_begin, stack_end, frontier, "STACK",
kReachable);
- extra_ranges.clear();
GetThreadExtraStackRangesLocked(os_id, &extra_ranges);
ScanExtraStackRanges(extra_ranges, frontier);
}
More information about the llvm-commits
mailing list