Skip to content

Commit

Permalink
Merge pull request #27 from jsinglet/jsinglet/deadlock-shared-perform…
Browse files Browse the repository at this point in the history
…ance-fix-26

Removed Unneeded Predicate Clause
  • Loading branch information
jsinglet authored Jul 21, 2022
2 parents 3f4a9c9 + de6c69e commit f8700ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions change_notes/2022-07-21-performance-fix-to-deadlock-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- `CON53-CPP` - `DeadlockByLockingInPredefinedOrder.ql`
- Optimized performance by removing unneeded conditionals.
- `CON35-C` - `DeadlockByLockingInPredefinedOrder.ql`
- Optimized performance by removing unneeded conditionals.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ predicate getAnOrderedLockPair(
lock2 = node.coveredByLock() and
not lock1 = lock2 and
lock1.getEnclosingFunction() = lock2.getEnclosingFunction() and
node.(Expr).getEnclosingFunction() = lock1.getEnclosingFunction() and
exists(Location l1Loc, Location l2Loc |
l1Loc = lock1.getLocation() and
l2Loc = lock2.getLocation()
Expand Down

0 comments on commit f8700ba

Please sign in to comment.