Skip to content

Conversation

@rconnell9
Copy link
Contributor

Use Task.detachNewThread here because buildSystem.build() is a blocking operation. Running this on the Swift Concurrency thread pool can block a worker thread potentially causing thread pool starvation and deadlocks. By running it on a dedicated thread, we keep the Swift Concurrency pool available for other async work.

Motivation:

#9441

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9
Copy link
Contributor Author

@swift-ci test macOS

@rconnell9
Copy link
Contributor Author

@swift-ci test windows

@rconnell9
Copy link
Contributor Author

@swift-ci test macos self hosted

1 similar comment
@rconnell9
Copy link
Contributor Author

@swift-ci test macos self hosted

@rconnell9
Copy link
Contributor Author

@swift-ci test windows

@rconnell9
Copy link
Contributor Author

@swift-ci test windows

@rconnell9
Copy link
Contributor Author

@swift-ci test macOS self hosted

@rconnell9 rconnell9 merged commit bb754d8 into swiftlang:main Dec 12, 2025
43 of 45 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