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
[Collections] testPopulateTargetTrie sometimes gets stuck (#3522)
Motivation:
`PackageCollectionsStorageTests/testPopulateTargetTrie` gets stuck sometimes because `targetTrieReady` is already set and `callback` is only invoked in the body of `memoize`.
https://ci.swift.org/job/oss-swift-package-ubuntu-20_04-aarch64/79/console
Modifications:
Rearrange logic in `populateTargetTrie` such that `callback` is invoked outside of `memoize` body.
Also, add `populateTargetTrieLock` to prevent more than one thread from calling `memoize` at the same time.
0 commit comments