aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-07-11 15:12:24 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-07-13 10:02:23 +0200
commitd89d3dfae17d7795dc1ef013db66272020de1959 (patch)
tree21a34af5681ff10ecb3f2ec95c10b01b8a671c1f /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent954a15d6398edbb839d4b842534b50e85d4aa8cd (diff)
downloadllvm-d89d3dfae17d7795dc1ef013db66272020de1959.zip
llvm-d89d3dfae17d7795dc1ef013db66272020de1959.tar.gz
llvm-d89d3dfae17d7795dc1ef013db66272020de1959.tar.bz2
sanitizer_common: optimize memory drain
Currently we allocate MemoryMapper per size class. MemoryMapper mmap's and munmap's internal buffer. This results in 50 mmap/munmap calls under the global allocator mutex. Reuse MemoryMapper and the buffer for all size classes. This radically reduces number of mmap/munmap calls. Smaller size classes tend to have more objects allocated, so it's highly likely that the buffer allocated for the first size class will be enough for all subsequent size classes. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D105778
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions