Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sweep objects singleton: prevent concurrent running handler. #147

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

iwanbk
Copy link
Member

@iwanbk iwanbk commented Dec 18, 2024

Part of #135

@iwanbk iwanbk requested a review from LeeSmet as a code owner December 18, 2024 08:22
@iwanbk iwanbk mentioned this pull request Dec 18, 2024
2 tasks
Copy link
Contributor

@LeeSmet LeeSmet left a comment

Choose a reason for hiding this comment

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

Considering we are only observing the flag, and nothing else, I feel the ordering can be downgraded to Ordering::Relaxed. Note that using Ordering::Acquire is only relevant for the load part in the swap function, the store part implicitly has Ordering::Relaxed in this case

@LeeSmet LeeSmet merged commit 7101627 into master Dec 18, 2024
4 checks passed
@LeeSmet LeeSmet deleted the sweep-objects-singleton branch December 18, 2024 11:14
@iwanbk iwanbk mentioned this pull request Jan 1, 2025
3 tasks
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.

2 participants