diff options
| author | Teresa Johnson <tejohnson@google.com> | 2021-09-15 14:04:51 -0700 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2021-09-15 16:06:11 -0700 |
| commit | 37a5a3ae5508a120a6eba113dbd0b23ab27d650e (patch) | |
| tree | fb9c0f4da44c8c8048c773e0add2c937311baf4f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 699da98739b0f88c27f75adbe8295c7e1dfd0188 (diff) | |
[MemProf] Avoid global lock when updating MIB cache
Previously we used a global Allocator-scope mutex to lock when adding a
deallocation to the MIB cache. This resulted in a lot of contention.
Instead add and use per-set mutexes.
Along with this, we now need to remove the global miss and access count
variables and instead utilize the per-set statistics to report the
overall miss rate.
Differential Revision: https://reviews.llvm.org/D109853
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
