[sanitizer] Fix CompressStackStore VPrint message
authorVitaly Buka <vitalybuka@google.com>
Tue, 7 Dec 2021 08:10:25 +0000 (00:10 -0800)
committerVitaly Buka <vitalybuka@google.com>
Tue, 7 Dec 2021 09:00:01 +0000 (01:00 -0800)
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp

index 308bd94..af107b3 100644 (file)
@@ -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);