[llvm] [BOLT] fix race condition in multi-threaded DWO type unit processing (PR #197359)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 31 21:44:31 PDT 2026
================
@@ -284,12 +285,18 @@ class BinaryContext {
/// Internal helper for removing section name from a lookup table.
void deregisterSectionName(const BinarySection &Section);
+ /// Mutex used for parallel processing of DWP type units.
+ mutable std::recursive_mutex DWPUnitsMutex;
----------------
Thrrreeee wrote:
> I think we can just user regular std::mutex here since it's not used in recursive function and it's not const.
Fixed!
https://github.com/llvm/llvm-project/pull/197359
More information about the llvm-commits
mailing list