Skip to content

Conversation

compnerd
Copy link
Member

While it is sufficient to use the relaxed ordering for the acquire semantics in the _dispatch_muxnote_retain, we need to use the acquire release semantics on the release in _dispatch_muxnote_release to ensure that any pending retains are not interrupted. This should hopefully alleviate the occasional crashes that have been observed with the muxnote reference counting.

Fixes: #887, #844

While it is sufficient to use the relaxed ordering for the acquire
semantics in the `_dispatch_muxnote_retain`, we need to use the acquire
release semantics on the release in `_dispatch_muxnote_release` to
ensure that any pending retains are not interrupted. This should
hopefully alleviate the occasional crashes that have been observed with
the muxnote reference counting.

Fixes: swiftlang#887, swiftlang#844
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@compnerd compnerd merged commit 2df91f9 into swiftlang:release/6.2 Aug 15, 2025
2 checks passed
@compnerd compnerd deleted the race branch August 15, 2025 00:16
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.

1 participant