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

add a flag to print a diagnostic when an outdated value is returned from an atomic load #2424

Merged
merged 1 commit into from
Jul 23, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Jul 23, 2022

Helps with #2313. It can still be annoying to figure out which outdated load is the important one in case there are many of them (and the issue contains some ideas for how to help with that situation), but having this flag is better than nothing.

Thanks to @cbeuw for the original patch that I based this on.

The backtraces are currently a bit annoying, but rust-lang/rust#98674 will help with that.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Jul 23, 2022

📌 Commit 649b216 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 23, 2022

⌛ Testing commit 649b216 with merge 302e9ae...

@bors
Copy link
Contributor

bors commented Jul 23, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 302e9ae to master...

@bors bors merged commit 302e9ae into rust-lang:master Jul 23, 2022
@RalfJung RalfJung deleted the weak-memory-debug branch July 23, 2022 14:11
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