================ @@ -95,6 +96,10 @@ class DependencyScanningService { return SharedCache; } + ModuleCacheMutexes &getSharedModuleCacheMutexes() { ---------------- jansvoboda11 wrote:
We don't _need_ it, but we currently call `std::make_shared<ModuleCacheMutexLock>` for each TU, which is unnecessary. We could just do that on service construction and avoid future allocations. https://github.com/llvm/llvm-project/pull/129751 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits