diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2016-02-22 18:52:51 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2016-02-22 18:52:51 +0000 |
| commit | 8e3cbde27d471ed207275cc3106f59c8d3cfa284 (patch) | |
| tree | bc9fc762cf00c73097c943c18f38ff2ae4dd4d8d /compiler-rt/lib/stats | |
| parent | 8c03c542002258ccf0197908904d5cb9767f2394 (diff) | |
| download | bcm5719-llvm-8e3cbde27d471ed207275cc3106f59c8d3cfa284.tar.gz bcm5719-llvm-8e3cbde27d471ed207275cc3106f59c8d3cfa284.zip | |
[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
llvm-svn: 261554
Diffstat (limited to 'compiler-rt/lib/stats')
| -rw-r--r-- | compiler-rt/lib/stats/stats.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/stats/stats.cc b/compiler-rt/lib/stats/stats.cc index 6b937f1c8c1..df9845a38de 100644 --- a/compiler-rt/lib/stats/stats.cc +++ b/compiler-rt/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); |

