[llvm] Reduce llvm-gsymutil memory usage (PR #91023)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 11:48:06 PDT 2024
================
@@ -658,6 +711,9 @@ 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 FreeLock(CUDieFreeMutex);
+ llvm::sys::ScopedWriter CULock(CUDieArrayMutex);
+ llvm::sys::ScopedWriter AllLock(AllDieArrayMutex);
----------------
dwblaikie wrote:
Sorry for the delays & thanks for the offer to meet more directly (& setting aside time - I didn't see this message until later, that week was a bit busy for me I think... ) - looking into this now.
https://github.com/llvm/llvm-project/pull/91023
More information about the llvm-commits
mailing list