Skip to content

[Distributed] Fix _executeDistributedTarget ABI #71725

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 4 commits into from
Feb 20, 2024

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 19, 2024

We should not change the signature of _executeDistributedTarget and we actually do not need to -- we do not use the witness table of actor type at all.

This is a follow up to #70842 which too aggressively added that generic parameter to runtime entry point

@ktoso ktoso changed the title Fix _executeDistributedTarget ABI [Distributed] Fix _executeDistributedTarget ABI Feb 19, 2024
@ktoso ktoso force-pushed the wip-fix-anyobject-da branch from 3f08bda to afd521f Compare February 20, 2024 02:28
@@ -652,8 +652,8 @@ public struct RemoteCallTarget: CustomStringConvertible, Hashable {

@available(SwiftStdlib 5.7, *)
@_silgen_name("swift_distributed_execute_target")
func _executeDistributedTarget<D: DistributedTargetInvocationDecoder, DA: DistributedActor>(
on actor: DA, // DistributedActor
func _executeDistributedTarget<D: DistributedTargetInvocationDecoder>(
Copy link
Contributor Author

@ktoso ktoso Feb 20, 2024

Choose a reason for hiding this comment

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

^ we needed to undo this introduction of the DA parameter here to avoid breaking ABI

@ktoso ktoso force-pushed the wip-fix-anyobject-da branch from afd521f to 779f893 Compare February 20, 2024 02:43
@ktoso ktoso requested review from xedin, slavapestov and hborla and removed request for slavapestov February 20, 2024 02:46
@ktoso
Copy link
Contributor Author

ktoso commented Feb 20, 2024

@swift-ci please test

@ktoso ktoso enabled auto-merge (squash) February 20, 2024 02:48
@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Feb 20, 2024
@ktoso ktoso merged commit 551b07b into swiftlang:main Feb 20, 2024
@ktoso ktoso deleted the wip-fix-anyobject-da branch February 20, 2024 07:01
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Thank you!

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