You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address warning reported by thread safety analyzer
Motivation:
Thread safety analyzer reports warning about observable state
leaving lock guarded code blocks. This PR address the warnings.
Analysis of the warning does not prove that we have a real bug and all the
warnings are considered as potential bugs.
Analyzer used is:
`docker run --rm -v $(pwd):/src -w /src swift:5.3.1 swift test -c
release --sanitize=thread --enable-test-discovery`
Modifications:
* accessor to count of connections in connection pool is guarded by lock
* forced materialization of a potentially lazy collection into an array before returning
the collection from lock guarded code block
Result:
Most of thread safety warnings are addressed without modification of observable
code behaviour.
0 commit comments