File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
FirebaseCore/Internal/Sources/HeartbeatLogging Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,19 @@ final class HeartbeatStorage: HeartbeatStorageProtocol {
5252
5353 /// Statically allocated cache of `HeartbeatStorage` instances keyed by string IDs.
5454 #if compiler(>=6)
55+ // In Swift 6, this property is not concurrency-safe because it is
56+ // nonisolated global shared mutable state. Because this target's
57+ // deployment version does not support Swift concurrency, it is marked as
58+ // `nonisolated(unsafe)` to disable concurrency-safety checks. The
59+ // property's access is protected by an external synchronization mechanism
60+ // (see `instancesLock` property).
5561 private nonisolated ( unsafe) static var cachedInstances : [
5662 String : WeakContainer < HeartbeatStorage >
5763 ] =
5864 [ : ]
5965 #else
66+ // TODO(Xcode 16): Delete this block when minimum supported Xcode is
67+ // Xcode 16.
6068 private static var cachedInstances : [
6169 String : WeakContainer < HeartbeatStorage >
6270 ] =
You can’t perform that action at this time.
0 commit comments