[compiler-rt] 7151c71 - [sanitizer] Fix CompressStackStore VPrint message
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 7 01:00:16 PST 2021
Author: Vitaly Buka
Date: 2021-12-07T01:00:01-08:00
New Revision: 7151c71481be2858a24cc7c0d9c1627642ee9de4
URL: https://github.com/llvm/llvm-project/commit/7151c71481be2858a24cc7c0d9c1627642ee9de4
DIFF: https://github.com/llvm/llvm-project/commit/7151c71481be2858a24cc7c0d9c1627642ee9de4.diff
LOG: [sanitizer] Fix CompressStackStore VPrint message
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
index 308bd94fc60b..af107b3980a5 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
@@ -79,7 +79,7 @@ static void CompressStackStore() {
if (!
diff )
return;
u64 finish = MonotonicNanoTime();
- uptr total_before = stackStore.Allocated() +
diff ;
+ uptr total_before = theDepot.GetStats().allocated +
diff ;
VPrintf(1, "%s: StackDepot released %zu KiB out of %zu KiB in %llu ms\n",
SanitizerToolName,
diff >> 10, total_before >> 10,
(finish - start) / 1000000);
More information about the llvm-commits
mailing list