Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix scope error in atomic thread test #772

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

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

pauldreik
Copy link
Collaborator

this fixes two minor issues.

The first one is a scope issue in the atomic thread test. I discovered this by accident when fiddling around with the threaded test when running without thread sanitizer, but with address sanitizer.

The other is a temporary hack I committed by mistake. I believe it is harmless because it is only included in c++20 anyway, but it shall be removed regardless.

the threads should be destroyed first, before the atomic bool they
use is destroyed.

found by address sanitizer when using clang (had to temporarily
enable the test to run even if thread sanitizer was disabled)
@pauldreik pauldreik requested a review from lemire April 30, 2025 17:54
Copy link
Member

@lemire lemire left a comment

Choose a reason for hiding this comment

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

Let us merge.

@lemire lemire merged commit 39e15b9 into master Apr 30, 2025
76 checks passed
@pauldreik pauldreik deleted the fix_scope_error_in_atomic_thread_test branch April 30, 2025 18:02
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