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

use std::atomic for ControlValueAtomicBase #13897

Closed
wants to merge 1 commit into from
Closed

use std::atomic for ControlValueAtomicBase #13897

wants to merge 1 commit into from

Conversation

m0dB
Copy link
Contributor

@m0dB m0dB commented Nov 17, 2024

fixes #13895 , using std::atomic, and replaces a pre-c++17 construction to terminate if the atomic or the ringbuffer implementation should be using by using std::atomic::is_always_lock_free

@m0dB m0dB changed the base branch from main to 2.5 November 17, 2024 20:38
@Swiftb0y
Copy link
Member

Note that there are similar changes in main already. #13574

@Swiftb0y
Copy link
Member

also @m0dB you have pushed this branch (and another similar one) to upstream instead of fork. Was that intentional?

@m0dB
Copy link
Contributor Author

m0dB commented Nov 30, 2024

also @m0dB you have pushed this branch (and another similar one) to upstream instead of fork. Was that intentional?

No, that was accidental. I normally manage to avoid this mistake, but occasionally it goes wrong.

@m0dB
Copy link
Contributor Author

m0dB commented Nov 30, 2024

Note that there are similar changes in main already. #13574

Oh, too bad I didn't see that. At a first glance, it looks like we used to same approach, but I will do a diff.

@m0dB
Copy link
Contributor Author

m0dB commented Nov 30, 2024

You went a bit further than I did (makes sense, since I merely wanted to fix the TSAN warnings, and you went for code quality).

I propose we cherry-pick your changes for 2.5.

@daschuer
Copy link
Member

We are at the end of beta in the 2.5 branch and after 2.4.2 release this is the new stable.
Since this is basically only a warning fix. Let's not introduce it without a testing period.

Can we close this?

@m0dB
Copy link
Contributor Author

m0dB commented Nov 30, 2024

Sure, I can move all further tsan work to main, though I can imagine that it would be nice to have it in a 2.5 dot release.

@m0dB m0dB closed this Nov 30, 2024
@Swiftb0y Swiftb0y deleted the tsan-fix-13895 branch November 30, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants