We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76d2665 + 92fb7f5 commit 1e0eb2fCopy full SHA for 1e0eb2f
java/ql/src/Likely Bugs/Concurrency/SynchSetUnsynchGet.ql
@@ -35,6 +35,7 @@ predicate isSynchronizedByBlock(Method m) {
35
* In this case, even if `set` is synchronized and `get` is not, `get` will never see stale
36
* values for the field, so synchronization is optional.
37
*/
38
+pragma[nomagic]
39
predicate bothAccessVolatileField(Method set, Method get) {
40
exists(Field f | f.isVolatile() |
41
f = get.(GetterMethod).getField() and
0 commit comments