Skip to content

Commit f90e9db

Browse files
committed
java: favour inline_late over inline
This gives much greater control over the join-order
1 parent 26c1b2f commit f90e9db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/ql/lib/semmle/code/java/ConflictingAccess.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import Concurrency
1111
* Holds if `t` is the type of a lock.
1212
* Currently a crude test of the type name.
1313
*/
14+
bindingset[t]
1415
overlay[caller?]
15-
pragma[inline]
16+
pragma[inline_late]
1617
predicate isLockType(Type t) { t.getName().matches("%Lock%") }
1718

1819
/**
@@ -211,8 +212,9 @@ class ExposedFieldAccess extends FieldAccess {
211212
}
212213

213214
/** Holds if the location of `a` is strictly before the location of `b`. */
215+
bindingset[a, b]
214216
overlay[caller?]
215-
pragma[inline]
217+
pragma[inline_late]
216218
predicate orderedLocations(Location a, Location b) {
217219
a.getStartLine() < b.getStartLine()
218220
or

0 commit comments

Comments
 (0)