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

Fix a race condition in FinalizableReferenceQueueTest. #7583

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Fix a race condition in FinalizableReferenceQueueTest.

We wait for an AtomicBoolean to become true, then check that the resource has indeed been freed. But for that to be correct, we must free the resource before setting the AtomicBoolean.

RELNOTES=n/a

We wait for an `AtomicBoolean` to become true, then check that the resource has indeed been freed. But for that to be correct, we must free the resource *before* setting the `AtomicBoolean`.

RELNOTES=n/a
PiperOrigin-RevId: 710742156
@copybara-service copybara-service bot merged commit 92eb5b4 into master Dec 30, 2024
2 checks passed
@copybara-service copybara-service bot deleted the test_710735628 branch December 30, 2024 18:12
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