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 another weak mem consistency test #2370

Merged
merged 4 commits into from
Jul 14, 2022
Merged

Conversation

RalfJung
Copy link
Member

@cbeuw your code seems to do this correctly? :D

@RalfJung
Copy link
Member Author

Ah, but unfortunately, the test still passes even if I replace the FAA by loads... bummer.^^ But still, seems like a good test to have.

@cbeuw
Copy link
Contributor

cbeuw commented Jul 14, 2022

still passes even if I replace the FAA by loads

I think this is because of #2164. Try atomically reading x, y and z before spawning the threads (or hoist the allocation outside the loop and atomically write zero as initialisation)

@RalfJung
Copy link
Member Author

Ah, yes, with some initial stores added the bad execution happens quickly when I replace the FAA by a load. :)

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 14, 2022

📌 Commit 07c3e42 has been approved by RalfJung

It is now in the queue for this repository.

bors added a commit that referenced this pull request Jul 14, 2022
add another weak mem consistency test

`@cbeuw` your code seems to do this correctly? :D
@bors
Copy link
Collaborator

bors commented Jul 14, 2022

⌛ Testing commit 07c3e42 with merge 52a6762...

@RalfJung
Copy link
Member Author

@bors retry r+

@bors
Copy link
Collaborator

bors commented Jul 14, 2022

📌 Commit 42d7711 has been approved by RalfJung

It is now in the queue for this repository.

bors added a commit that referenced this pull request Jul 14, 2022
add another weak mem consistency test

`@cbeuw` your code seems to do this correctly? :D
@bors
Copy link
Collaborator

bors commented Jul 14, 2022

⌛ Testing commit 42d7711 with merge 102f132...

@RalfJung
Copy link
Member Author

@bors retry r+

@bors
Copy link
Collaborator

bors commented Jul 14, 2022

📌 Commit b8a0c49 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 14, 2022

⌛ Testing commit b8a0c49 with merge e067258...

@bors
Copy link
Collaborator

bors commented Jul 14, 2022

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

@bors bors merged commit e067258 into rust-lang:master Jul 14, 2022
@RalfJung RalfJung deleted the weak-mem-test branch July 14, 2022 15:44
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.

3 participants