Skip to content

Commit 24a628e

Browse files
committed
wip
1 parent 69e7fed commit 24a628e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,12 +2064,13 @@ void ::swift_distributed_execute_target(
20642064
auto *accessor = findDistributedAccessor(targetNameStart, targetNameLength);
20652065
if (!accessor) {
20662066
assert(false && "no distributed accessor accessor");
2067-
return;
2067+
return; // FIXME(distributed): return -1 here so the lib can fail the call
20682068
}
20692069
fprintf(stderr, "[%s:%d] (%s) found accessor\n", __FILE__, __LINE__, __FUNCTION__);
20702070

20712071
auto *asyncFnPtr = reinterpret_cast<
2072-
const AsyncFunctionPointer<DistributedAccessorSignature> *>(accessor);
2072+
const AsyncFunctionPointer<DistributedAccessorSignature> *>(
2073+
accessor->Function.get());
20732074
assert(asyncFnPtr && "no function pointer for distributed_execute_target");
20742075

20752076
DistributedAccessorSignature::FunctionType *accessorEntry =

test/Distributed/Runtime/distributed_actor_remoteCall.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// XXX: %target-swift-frontend -primary-file %s -emit-sil -parse-as-library -enable-experimental-distributed -disable-availability-checking | %FileCheck %s --enable-var-scope --dump-input=always
2-
// TODO: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-distributed -parse-as-library) | %FileCheck %s --dump-input=always
2+
// RUN: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-distributed -parse-as-library) | %FileCheck %s --dump-input=always
33

44
// REQUIRES: executable_test
55
// REQUIRES: concurrency
@@ -12,9 +12,6 @@
1212
// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
1313
// UNSUPPORTED: windows
1414

15-
// TODO(distributed): work in progress
16-
// XFAIL: *
17-
1815
import _Distributed
1916

2017
final class Obj: @unchecked Sendable, Codable {}
@@ -110,7 +107,7 @@ func test() async throws {
110107
let local = Greeter(system: system)
111108

112109
// act as if we decoded an Invocation:
113-
var invocation = FakeInvocation()
110+
let invocation = FakeInvocation()
114111

115112
try await system.executeDistributedTarget(
116113
on: local,

0 commit comments

Comments
 (0)