[Sanitizer] Introduce ListOfModules object and use it to replace GetListOfModules().
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 22 Feb 2016 18:52:51 +0000 (18:52 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 22 Feb 2016 18:52:51 +0000 (18:52 +0000)
commit8e3cbde27d471ed207275cc3106f59c8d3cfa284
treebc9fc762cf00c73097c943c18f38ff2ae4dd4d8d
parent8c03c542002258ccf0197908904d5cb9767f2394
[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
15 files changed:
compiler-rt/lib/lsan/lsan_common_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.cc
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc
compiler-rt/lib/stats/stats.cc