[clang] [llvm] [clang][deps] Add in-flight query caching to `DependencyScanningFilesystemSharedCache` (PR #199680)

Artem Chikin via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 04:01:29 PDT 2026


================
@@ -166,6 +190,18 @@ class DependencyScanningFilesystemSharedCache {
     llvm::DenseMap<llvm::sys::fs::UniqueID, const CachedFileSystemEntry *>
         EntriesByUID;
 
+    /// Filenames whose cache entry is currently being computed. A second
+    /// worker reaching the same filename will wait on the entry's condition
+    /// variable rather than racing the underlying filesystem.
+    llvm::StringMap<std::shared_ptr<InProgressEntry>> InProgressByFilename;
----------------
artemcm wrote:

Folded the maps into existing ones. Thanks.

https://github.com/llvm/llvm-project/pull/199680


More information about the llvm-commits mailing list