Skip to content

[6.2][Concurrency] Forego Sendable checking if conversion doesn't change t… #82675

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 1 commit into from
Jul 1, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 1, 2025

…he global actor

  • Explanation:

    FunctionConversionExpr is allowed to modify different attributes of a type, sometimes it could strip @Sendable but keep the same global actor attribute in place, that needs to be handled explicitly before performing Sendable checking because in this case there is going to be no isolation context change for arguments or results.

  • Resolves: rdar://153646123

  • Main Branch PR: [Concurrency] Forego Sendable checking if conversion doesn't change t… #82645

  • Risk: Very Low. A small tweak to a check where both from and to function types have a global actor isolation in a function conversion expression.

  • Reviewed By: @ktoso

  • Testing: Added new test-cases to the test suite.

(cherry picked from commit 053199e)

…he global actor

`FunctionConversionExpr` is allowed to modify different attributes
of a type, sometimes it could strip `@Sendable` but keep the same
global actor attribute in place, that needs to be handled explicitly
before performing Sendable checking because in this case there is
going to be no isolation context change for arguments or results.

Resolves: rdar://153646123
(cherry picked from commit 053199e)
@xedin xedin requested a review from a team as a code owner July 1, 2025 07:23
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 1, 2025
@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit 1c501e8 into swiftlang:release/6.2 Jul 1, 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