[llvm] Reduce llvm-gsymutil memory usage (PR #91023)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 18:02:31 PDT 2024
================
@@ -658,6 +673,8 @@ void DWARFUnit::clearDIEs(bool KeepCUDie) {
// It depends on the implementation whether the request is fulfilled.
// Create a new vector with a small capacity and assign it to the DieArray to
// have previous contents freed.
+ llvm::sys::ScopedWriter CULock(CUDieArrayMutex);
----------------
ayermolo wrote:
Not clear to me, why do we need two different locks?
https://github.com/llvm/llvm-project/pull/91023
More information about the llvm-commits
mailing list