summaryrefslogtreecommitdiff
path: root/lib/stats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2016-02-22 18:52:51 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2016-02-22 18:52:51 +0000
commit250dd5e3f5d3b125d5bd269a97b3f0f2a8d63f25 (patch)
tree8ab0e84580c9659d237f954205000153520c241e /lib/stats
parent5e43f8b685effcdb7ed68a7502ee2edcf676d536 (diff)
downloadcompiler-rt-250dd5e3f5d3b125d5bd269a97b3f0f2a8d63f25.tar.gz
[Sanitizer] Introduce ListOfModules object and use it to replace GetListOfModules().
Summary: This removes the hard limit on the number of loaded modules (used to be 16K), and makes it easier to use LoadedModules w/o causing a memory leak: ListOfModules owns the modules, and makes sure to properly clean them in destructor. Remove filtering functionality that is only needed in one place (LSan). Reviewers: aizatsky Subscribers: llvm-commits, kcc Differential Revision: http://reviews.llvm.org/D17470 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/stats')
-rw-r--r--lib/stats/stats.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stats/stats.cc b/lib/stats/stats.cc
index 6b937f1c8..df9845a38 100644
--- a/lib/stats/stats.cc
+++ b/lib/stats/stats.cc
@@ -62,7 +62,7 @@ void WriteModuleReport(StatModule **smodp) {
return;
if (!stats_fd)
OpenStatsFile(path_env);
- LoadedModule *mod = Symbolizer::GetOrInit()->FindModuleForAddress(
+ const LoadedModule *mod = Symbolizer::GetOrInit()->FindModuleForAddress(
reinterpret_cast<uptr>(smodp));
WriteToFile(stats_fd, mod->full_name(),
internal_strlen(mod->full_name()) + 1);