[all-commits] [llvm/llvm-project] 74727a: [dsymutil] Fix stdio data races (NFC)

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Aug 18 13:46:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74727a46a5b78fe94af7bf0463612bfc99c57624
      https://github.com/llvm/llvm-project/commit/74727a46a5b78fe94af7bf0463612bfc99c57624
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M llvm/tools/dsymutil/dsymutil.cpp

  Log Message:
  -----------
  [dsymutil] Fix stdio data races (NFC)

When processing multiple architectures in parallel, we need to protect
access to stdio with a mutex. We already have a mutex for that purpose,
but it was only used in the DWARFLinker. This patch protects writes to
stdio in driver.




More information about the All-commits mailing list