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

Fix incorrect atomics usage #4159

Merged
merged 2 commits into from
Aug 6, 2022
Merged

Fix incorrect atomics usage #4159

merged 2 commits into from
Aug 6, 2022

Conversation

SeanTAllen
Copy link
Member

I was looking at #1206 and noticed
that when Benoit did the porting, that in a few places, he changed the
atomics usage unintentionally from what it was previously.

This commit reverts those (almost assuredly) inadvertent changes.

I can't guarantee that there are no other bits that were incorrect
in that commit, but I know these bits where.

I believe from a cursory glance that these could do "very bad things"
on weakly ordered memory platforms like Arm.

@SeanTAllen SeanTAllen requested review from jemc and a team July 14, 2022 04:19
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jul 14, 2022
@SeanTAllen
Copy link
Member Author

@jemc this almost assuredly will fix some potential runtime instability/boom/o no, invariant violated issues on Arm. I think that is worth release notes, but I wanted to ask you first.

I was looking at #1206 and noticed
that when Benoit did the porting, that in a few places, he changed the
atomics usage unintentionally from what it was previously.

This commit reverts those (almost assuredly) inadvertent changes.

I can't guarantee that there are no other bits that were incorrect
in that commit, but I know these bits where.

I believe from a cursory glance that these could do "very bad things"
on weakly ordered memory platforms like Arm.
@jemc
Copy link
Member

jemc commented Jul 14, 2022

Given that this fixes a real-world class of bugs on ARM, I do think it makes sense to add release notes.

Copy link
Member

@jemc jemc left a comment

Choose a reason for hiding this comment

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

Looks good apart from the missing release notes.

@jemc jemc removed the discuss during sync Should be discussed during an upcoming sync label Aug 2, 2022
@SeanTAllen
Copy link
Member Author

@jemc can you give the release notes a review and if good, squash and merge this using the first comment on the PR as the commit message?

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 3, 2022
@SeanTAllen SeanTAllen mentioned this pull request Aug 3, 2022
@SeanTAllen
Copy link
Member Author

@ponylang/committer can someone give this a final review?

@SeanTAllen SeanTAllen merged commit 7af905e into main Aug 6, 2022
@SeanTAllen SeanTAllen deleted the incorrect-atomics branch August 6, 2022 17:34
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Aug 6, 2022
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants