Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented May 1, 2025

Cherry-pick of #81231


  • Explanation:

    If closure is stated as @concurrent is has to be treated as nonisolated otherwise it could be possible to infer wrong isolation which results in data races.

  • Main Branch PR: [Concurrency] Account for explicit @concurrent on closures #81231

  • Risk: Low (This is specific to the new @concurrent which nobody should be using yet).

  • Reviewed By: @ktoso @hborla

  • Resolves: rdar://150397825

  • Testing: Added new tests to the test suite.

(cherry picked from commit ef65f26)

If closure is stated as `@concurrent` is has to be treated as
nonisolated.

Resolves: rdar://150397825
(cherry picked from commit ef65f26)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 1, 2025
@xedin xedin requested a review from hborla May 1, 2025 20:18
@xedin xedin requested a review from a team as a code owner May 1, 2025 20:18
@xedin
Copy link
Contributor Author

xedin commented May 1, 2025

@swift-ci please test

@xedin xedin merged commit fb04803 into swiftlang:release/6.2 May 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants