-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Data race on BufferedChannelIterator.continuation
#3834
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
Comments
The data race is benign on the JVM and for the buffered channel: T1:
T2:
The race is benign because it is allowed an expected to see The race is not suppressable though, because this very code is also executable on K/N where there is no [yet] bening races; We either have to have a clear guidance ("it's allowed to do that, there is no UB/OoTA") or just put |
…potential UB and OoTA on K/N Fixes #3834
* Mark BufferedChannelIterator.continuation as @BeningDataRace to address potential UB and OoTA on K/N * Explain benign data-race on SelectImplementation.clauses and mark it with @BenignDataRace * Explain benign data-race on SelectImplementation.internalResult and mark it with @BenignDataRace Fixes #3834 Fixes #3843
Our internal TSan tests found the following data race. I patched a fix locally to put
@Volatile
onBufferedChannelIterator.continuation
, but I'm not sure if that's appropriate to upstream.The text was updated successfully, but these errors were encountered: