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.
1 parent e9b1146 commit 92fb7f5Copy full SHA for 92fb7f5
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