[PATCH] D111676: [memprof] Replace the block cache with a hashmap.
Snehasish Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 10:54:43 PDT 2021
snehasish updated this revision to Diff 384814.
snehasish added a comment.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Address comments.
- Tune the address map size based on internal workload and double checked on clang.
- Guard deallocation insertions to ensure map has been initialized.
- Use a pointer as value in the map instead of MIB.
- Store a 1 byte mutex for each MIB to allow fine-grained locking.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111676/new/
https://reviews.llvm.org/D111676
Files:
compiler-rt/lib/memprof/CMakeLists.txt
compiler-rt/lib/memprof/memprof_allocator.cpp
compiler-rt/lib/memprof/memprof_flags.inc
compiler-rt/lib/memprof/memprof_meminfoblock.h
compiler-rt/lib/memprof/memprof_mibmap.cpp
compiler-rt/lib/memprof/memprof_mibmap.h
compiler-rt/test/memprof/TestCases/mem_info_cache_entries.cpp
compiler-rt/test/memprof/TestCases/print_miss_rate.cpp
llvm/cmake/modules/HandleLLVMOptions.cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111676.384814.patch
Type: text/x-patch
Size: 22764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211104/70b81924/attachment.bin>
More information about the llvm-commits
mailing list