Skip to content

[5.7-04182022][Distributed] Retain ad-hoc decodeNextArgument in distributed thunk #42495

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 20, 2022

Cherry-pick of #42252


  • Explanation:

SIL has to force emission of decodeNextArgument and its retainment,
so IRGen can reference it in distributed function accessor, otherwise it
wouldn't be possible to use any type expect to a class to implement
a DistributedInvocationDecoder protocol which limits the use of the
feature significantly.

Resolves: rdar://88211172

(cherry picked from commit 79ad927)
(cherry picked from commit 870c712)
(cherry picked from commit dadf301)
(cherry picked from commit 4e2c059)
(cherry picked from commit 560e96f)
(cherry picked from commit 41a4cea)
(cherry picked from commit 8c8360a)
(cherry picked from commit fc662bc)
(cherry picked from commit 1d230ee)

SIL has to force emission of `decodeNextArgument` and its retainment,
so IRGen can reference it in distributed function accessor.

(cherry picked from commit 79ad927)
(cherry picked from commit 870c712)
(cherry picked from commit dadf301)
(cherry picked from commit 4e2c059)
(cherry picked from commit 560e96f)
(cherry picked from commit 41a4cea)
(cherry picked from commit 8c8360a)
(cherry picked from commit fc662bc)
(cherry picked from commit 1d230ee)
@xedin xedin added distributed Feature → concurrency: distributed actor r5.7 labels Apr 20, 2022
@xedin xedin requested a review from hborla April 20, 2022 20:59
@xedin xedin requested a review from a team as a code owner April 20, 2022 20:59
@xedin
Copy link
Contributor Author

xedin commented Apr 20, 2022

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, forgot about this branch...

@ktoso ktoso merged commit ee162e1 into swiftlang:release/5.7-04182022 Apr 21, 2022
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants