diff options
author | Adin Scannell <ascannell@google.com> | 2021-11-02 18:01:24 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-02 18:04:26 -0700 |
commit | 7551b0590d87588deda562a959e09ada425bfea5 (patch) | |
tree | ebf5e58fd75233e06cbf7edbb26b1f8d1ae854a7 /tools/checklocks/checklocks.go | |
parent | a8eb1895bbc4e1d41cdd621b8eca3f3e4912a446 (diff) |
Minor checklocks improvements.
* Support sync.Locker.
* Prevent runaway recursion when locks are acquired in a loop.
* Allowing ignoring of anonymous functions (inherited from parent function).
* Add support for aliases.
PiperOrigin-RevId: 407221521
Diffstat (limited to 'tools/checklocks/checklocks.go')
-rw-r--r-- | tools/checklocks/checklocks.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/checklocks/checklocks.go b/tools/checklocks/checklocks.go index 401fb55ec..ae8db1a36 100644 --- a/tools/checklocks/checklocks.go +++ b/tools/checklocks/checklocks.go @@ -131,11 +131,6 @@ func run(pass *analysis.Pass) (interface{}, error) { var lff lockFunctionFacts pc.pass.ImportObjectFact(fn.Object(), &lff) - // Do we ignore this? - if lff.Ignore { - continue - } - // Check the basic blocks in the function. pc.checkFunction(nil, fn, &lff, nil, false /* force */) } |