summaryrefslogtreecommitdiff
path: root/lib/asan/asan_stats.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-06-26 19:18:02 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-06-26 19:18:02 +0000
commit8518fd987e08fa070c92af4a300016910b14809c (patch)
tree203af3eccd9ba5e82f8f14be6387f5145469a977 /lib/asan/asan_stats.h
parent79d042b6f2a08ceed1badd38bbca18d9db01623a (diff)
downloadcompiler-rt-8518fd987e08fa070c92af4a300016910b14809c.tar.gz
[ASan] Clean up obsolete stats.
Remove stats that we no longer collect after the allocator change. Use proper constant SizeClassMap::kNumClasses to fix potential buffer overflow (https://code.google.com/p/address-sanitizer/issues/detail?id=397). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_stats.h')
-rw-r--r--lib/asan/asan_stats.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/asan/asan_stats.h b/lib/asan/asan_stats.h
index c66848dc5..4605135e1 100644
--- a/lib/asan/asan_stats.h
+++ b/lib/asan/asan_stats.h
@@ -32,20 +32,14 @@ struct AsanStats {
uptr freed;
uptr real_frees;
uptr really_freed;
- uptr really_freed_redzones;
uptr reallocs;
uptr realloced;
uptr mmaps;
uptr mmaped;
uptr munmaps;
uptr munmaped;
- uptr mmaped_by_size[kNumberOfSizeClasses];
- uptr malloced_by_size[kNumberOfSizeClasses];
- uptr freed_by_size[kNumberOfSizeClasses];
- uptr really_freed_by_size[kNumberOfSizeClasses];
-
uptr malloc_large;
- uptr malloc_small_slow;
+ uptr malloced_by_size[kNumberOfSizeClasses];
// Ctor for global AsanStats (accumulated stats for dead threads).
explicit AsanStats(LinkerInitialized) { }