Skip to content

Mark all closures in the .stream outputRedirection of TSC as @Sendable #2129

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 29, 2025

  • Explanation: The closures aren’t guaranteed to be called on the same thread as the process was launched, which can cause assertion failure by the concurrency runtime, crashing sourcekit-lsp diagnose on launch.
  • Scope: Concurrency annotations when launching subprocess from SourceKit-LSP.
  • Issue: rdar://142813605
  • Original PR: Mark all closures in the .stream outputRedirection of TSC as @Sendable #1919
  • Risk: Low, this is adding concurrency annotations and has been tested in main and 6.2 snapshots for over three months.
  • Testing: Manually verified that sourcekit-lsp diagnose no longer crashes with this fix
  • Reviewer: @bnbarham

…able`

The closures aren’t guaranteed to be called on the same thread as the process was launched, which can cause assertion failure by the concurrency runtime.

rdar://142813605
@ahoppen ahoppen requested a review from bnbarham April 29, 2025 18:40
@ahoppen
Copy link
Member Author

ahoppen commented Apr 29, 2025

@swift-ci Please test

@ahoppen ahoppen changed the base branch from release/6.1.1 to release/6.1 April 29, 2025 18:43
@bnbarham bnbarham merged commit a1cb7f9 into swiftlang:release/6.1 May 2, 2025
3 checks passed
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.

3 participants