diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-12-26 11:21:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 11:21:06 -0800 |
commit | 01bf29b9d04e047096b34acc7e4ad1aff97f1a43 (patch) | |
tree | a435ac1bddfa08d6ac219c8d27ba1e1830b1210b /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 4358e6e0c5b1f08de60b6b2fb015a06ab6760ee7 (diff) | |
download | llvm-01bf29b9d04e047096b34acc7e4ad1aff97f1a43.zip llvm-01bf29b9d04e047096b34acc7e4ad1aff97f1a43.tar.gz llvm-01bf29b9d04e047096b34acc7e4ad1aff97f1a43.tar.bz2 |
[sanitizers] Optimize locking StackDepotBase for fork (#76280)
Locking StackDepotBase fully is very expensive, as 2^20 buckets needs to
be locked. Not locking, but only unlocking buckets, needed to be
unlocked to avoid deadlocks, increases a chance of data race, when the
value with same hash can be inserted into table twice, but one is lost.
However this is just a small additional memory usage by forked process.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions