mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rather than only protecting the insertion and non-const access to `ContextSpecificCacheMap` in ScanningService, extend the mutex protection to all accesses. Even a 'const' lookup in the cache map is not thread safe because the `StringMap` could be in the process of being rehashed. rdar://127205953
38 KiB
38 KiB