================
@@ -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;
----------------
jansvoboda11 wrote:

The keys here can get fairly long. How hard would it be to fold these new maps 
into the existing ones?

https://github.com/llvm/llvm-project/pull/199680
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to