Skip to content

Conversation

@andyleiserson
Copy link

@andyleiserson andyleiserson commented Nov 20, 2025

The ManuallyDrop was suppressing both the drop of the guard (as intended, to avoid double-signalling) and the drop of the DispatchRetained (not intended).

@andyleiserson
Copy link
Author

The tests failed on GNUStep with a SEGV, I'm guessing what I did with retainCount isn't right in that context.

@madsmtm madsmtm added bug Something isn't working A-dispatch2 Affects the `dispatch2` crate labels Nov 21, 2025
Copy link
Owner

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Well spotted, thanks!

@andyleiserson andyleiserson force-pushed the semaphore branch 2 times, most recently from cdf14ab to 18ed26c Compare November 21, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-dispatch2 Affects the `dispatch2` crate bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants