Skip to content

[Sema/SILGen] Import ObjC async functions as nonisolated(nonsending) by … #79717

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 5 commits into from
Apr 21, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Feb 28, 2025

…default

These functions already have special code generation that keeps them in the caller's isolation context, so there is no behavior change here.

Resolves: rdar://145672343

@xedin
Copy link
Contributor Author

xedin commented Feb 28, 2025

Depends on some work we need to do for witnesses.

@xedin xedin force-pushed the objc-handlers-are-execution-caller branch from 48fb45e to 7320fea Compare April 7, 2025 21:08
@xedin
Copy link
Contributor Author

xedin commented Apr 9, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 9, 2025

@swift-ci please test source compatibility

@xedin xedin changed the title [Sema/SILGen] Import ObjC async functions as @execution(caller) by … [Sema/SILGen] Import ObjC async functions as nonisolated(nonsending) by … Apr 17, 2025
@xedin xedin force-pushed the objc-handlers-are-execution-caller branch from 26044d3 to 6a53bef Compare April 18, 2025 00:17
xedin and others added 4 commits April 17, 2025 21:56
…` by default

These functions already have special code generation that keeps them
in the caller's isolation context, so there is no behavior change here.

Resolves: rdar://145672343
…to native thunks.

We do not actually hop since we know that
@xedin xedin force-pushed the objc-handlers-are-execution-caller branch from 6a53bef to 87cee09 Compare April 18, 2025 07:24
@xedin xedin marked this pull request as ready for review April 18, 2025 07:25
@xedin
Copy link
Contributor Author

xedin commented Apr 18, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 18, 2025

@swift-ci please test source compatibility

…d `@objc` async handlers to be `@concurrent

This is behavior pre-SE-0461 which is the safest option instead
of inferring `nonisolated(nonsending)` and changing the calling
convention and foregoing Sendable checking.
@xedin xedin force-pushed the objc-handlers-are-execution-caller branch from 87cee09 to c25d2fa Compare April 18, 2025 16:17
@xedin
Copy link
Contributor Author

xedin commented Apr 18, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 19, 2025

@swift-ci please test source compatibility

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Apr 20, 2025

@swift-ci please test source compatibility

@xedin xedin merged commit 047d644 into swiftlang:main Apr 21, 2025
7 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.

2 participants