Skip to content

[Distributed] Strip marker protocols from distributed thunks and accessible functions #41871

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 Mar 17, 2022

Since marker protocols do not exist at runtime, let's strip them from mangling of distributed thunks
and generic environments associated with accessible functions.

Resolves: rdar://90293494

xedin added 5 commits March 17, 2022 14:00
…unks

Distributed thunks loose all of the marker protocols associated with their
generic parameters.
…e function generic environments

Since marker protocol do not exist at runtime, it's harmful to keep them
in a generic environment because they cannot be checked.

Resolves: rdar://90293494
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.

Nice,:l thank you!

return !protocol->isMarkerProtocol();
}
return true;
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I see, nice

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Mar 18, 2022
@ktoso
Copy link
Contributor

ktoso commented Mar 18, 2022

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Mar 18, 2022

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Mar 18, 2022

Let's run a full suite just in case.

@ktoso
Copy link
Contributor

ktoso commented Mar 18, 2022

Yeah, sounds good 👍

@ktoso
Copy link
Contributor

ktoso commented Mar 18, 2022

CI node died, starting again

uest: Termination requested at Fri Mar 18 05:34:12 UTC 2022 by Thread[Ping thread for channel hudson.remoting.Channel@1909955:macos-node-i-0c48462df7e9f71e1,5,main] [id=2687760]
		at hudson.model.Computer.recordTermination(Computer.java:232)
		at hudson.model.Computer.disconnect(Computer.java:500)

@swift-ci please test macOS platform

@ktoso ktoso merged commit 14fb9a0 into swiftlang:main Mar 18, 2022
@ktoso
Copy link
Contributor

ktoso commented Mar 18, 2022

and full test runs all good 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants