Skip to content

[clangsa] write a checker for implicit seq_cst atomics#42323

Merged
JeffBezanson merged 1 commit intomasterfrom
jn/static-analysis-implicit-atomics
Sep 23, 2021
Merged

[clangsa] write a checker for implicit seq_cst atomics#42323
JeffBezanson merged 1 commit intomasterfrom
jn/static-analysis-implicit-atomics

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented Sep 20, 2021

Prior to #42152, some of these were too weakly ordered, now many are too strongly ordered. But slowly we get closer to our goal. This adds a checker that prohibits reading or writing to an atomic without explicitly specifying the memory ordering. In principle, that also makes it much closer to our Julia atomics model.

and ensure we are using relaxed for single-threaded reader/writer
@JeffBezanson JeffBezanson merged commit a8be283 into master Sep 23, 2021
@JeffBezanson JeffBezanson deleted the jn/static-analysis-implicit-atomics branch September 23, 2021 18:27
KristofferC pushed a commit that referenced this pull request Sep 28, 2021
and ensure we are using relaxed for single-threaded reader/writer
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
and ensure we are using relaxed for single-threaded reader/writer
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
and ensure we are using relaxed for single-threaded reader/writer
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