[compiler-rt] r369472 - [AArch64][asan] fix typo in AsanStats::Print

Sebastian Pop via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 16:28:05 PDT 2019


Author: spop
Date: Tue Aug 20 16:28:05 2019
New Revision: 369472

URL: http://llvm.org/viewvc/llvm-project?rev=369472&view=rev
Log:
[AArch64][asan] fix typo in AsanStats::Print

This created an infinite loop that timed out several build bots while
executing the test in compiler-rt/test/asan/TestCases/atexit_stats.cpp

Differential Revision: https://reviews.llvm.org/D60243

Modified:
    compiler-rt/trunk/lib/asan/asan_stats.cpp

Modified: compiler-rt/trunk/lib/asan/asan_stats.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stats.cpp?rev=369472&r1=369471&r2=369472&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stats.cpp (original)
+++ compiler-rt/trunk/lib/asan/asan_stats.cpp Tue Aug 20 16:28:05 2019
@@ -52,7 +52,7 @@ void AsanStats::Print() {
              mmaps, munmaps);
 
   PrintMallocStatsArray("  mallocs by size class: ", malloced_by_size,
-                        get_allocator().KMaxSize());
+                        get_allocator().KNumClasses());
   Printf("Stats: malloc large: %zu\n", malloc_large);
 }
 




More information about the llvm-commits mailing list