Skip to content

[silgen] Place hop_to_executor emission for an apply within a formal evaluation scope. #79848

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 7, 2025

Without this, the borrow of the hop_to_executor lasts after the apply. Beyond being unnecessary this results in an OSSA violation if we are passing an actor as an isolated parameter to an initializer since we hop_to_executor the actor and then pass it as a +1 parameter to the initializer causing the actor to be consumed before its borrow ends.

rdar://144994837

…evaluation scope.

Without this, the borrow of the hop_to_executor lasts after the apply. Beyond
being unnecessary this results in an OSSA violation if we are passing an actor
as an isolated parameter to an initializer since we hop_to_executor the actor
and then pass it as a +1 parameter to the initializer causing the actor to be
consumed before its borrow ends.

rdar://144994837
@gottesmm gottesmm requested a review from jckarter as a code owner March 7, 2025 19:52
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 7, 2025

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge March 7, 2025 19:52
@gottesmm gottesmm merged commit 17e3054 into swiftlang:main Mar 8, 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.

1 participant