Skip to content

Conversation

@akbashev
Copy link
Contributor

Motivation:

Calling __secretlyKnownToBeLocal somehow doesn't guarantee isolation and crashes sometimes (e.g. #1140). Not sure what exact issue though, but anyway it's better to call whenLocal.

Modifications:

Moved from calling __secretlyKnownToBeLocal to whenLocal where possible.

Result:

@ktoso
Copy link
Member

ktoso commented Mar 11, 2024

@swift-server-bot test this please


for await event in system.cluster.events {
try __secretlyKnownToBeLocal.receiveClusterEvent(event)
try await self?.whenLocal { __secretlyKnownToBeLocal in
Copy link
Member

Choose a reason for hiding this comment

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

No need for the __secretlyKnownToBeLocal because whenLocal does bring the right isolation.

__secretlyKnownToBeLocal is a hack that turns off checking and we have to remove it.

@ktoso ktoso changed the title Moved __secretlyKnownToBeLocal to whenLocal Remove __secretlyKnownToBeLocal, adopt whenLocal Mar 11, 2024
@ktoso
Copy link
Member

ktoso commented Mar 11, 2024

@swift-server-bot test this please

@ktoso ktoso merged commit 93db30d into apple:main Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EXC_BAD_ACCESS in OpLogDistributedReceptionist

2 participants