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

sync: fix Semaphore::MAX_PERMITS test #5582

Merged
merged 2 commits into from Mar 25, 2023
Merged

Conversation

Darksonn
Copy link
Contributor

The maximum number of permits is (usize::MAX >> 3), not (usize::MAX >> 2).

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Mar 25, 2023
@github-actions github-actions bot added the R-loom Run loom tests on this PR label Mar 25, 2023
@Darksonn Darksonn enabled auto-merge (squash) March 25, 2023 17:19
@Darksonn Darksonn merged commit 822af18 into master Mar 25, 2023
56 checks passed
@Darksonn Darksonn deleted the alice/sem-maxpermit-test branch March 25, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync R-loom Run loom tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants