mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency/Distributed] nonisolated-nonsending by default breaks distributed thunks
the new NonisolatedNonsendingByDefault upcoming feature breaks remote calls in distributed actors, because the expected isolation doesn't match and the runtime swift_distributed_execute_target_resume will crash. This is a short term fix to unblock adopters, however preferably we should mark the thunks as nonisolated(nonsending), though that seems to be more involved. resolves rdar://159247975
This commit is contained in:
@@ -737,6 +737,7 @@ static FuncDecl *createSameSignatureDistributedThunkDecl(DeclContext *DC,
|
||||
|
||||
thunk->setSynthesized(true);
|
||||
thunk->setDistributedThunk(true);
|
||||
// TODO(distributed): These would benefit from becoming nonisolated(nonsending)
|
||||
thunk->getAttrs().add(NonisolatedAttr::createImplicit(C));
|
||||
|
||||
return thunk;
|
||||
|
||||
Reference in New Issue
Block a user