Skip to content

[Dependency Scanning] Remove/move mutable state from parallel scanner workers #70211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Dec 4, 2023

  • Move generation of a named import path Identifier out of the individual scanning workers up into the parent scanner. This operation mutates the scanner ASTContext by potentially adding new identifiers to it and is therefore not thread-safe.
  • Remove overlaySharedFilesystemCacheForCompilation from the scanner. It overlays a non-thread-safe filesystem on shared compilation instances and is no longer valid with parallel scanning.

…ion' from the scanner. It overlays a non-thread-safe filesystem on shared compilation instances and is no longer valid with parallel scanning.
@artemcm
Copy link
Contributor Author

artemcm commented Dec 4, 2023

@swift-ci smoke test

@artemcm
Copy link
Contributor Author

artemcm commented Dec 4, 2023

@swift-ci smoke test

@xedin xedin removed their request for review December 5, 2023 01:16
…ier' out of the individual scanning workers up into the parent scanner. This operation mutates the scanner ASTContext by potentially adding new identifiers to it and is therefore not thread-safe.
@artemcm
Copy link
Contributor Author

artemcm commented Dec 13, 2023

@swift-ci smoke test

@artemcm artemcm merged commit 33e09f9 into swiftlang:main Dec 15, 2023
@artemcm artemcm deleted the ParallelScanFixes branch December 15, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant