Use gvisor checklocks for static lock analysis.

Also fix locking issues found along the way.

See https://github.com/google/gvisor/tree/master/tools/checklocks for details.
This commit is contained in:
Joachim Bauch 2025-09-26 17:20:17 +02:00
commit cfd8cf6718
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
61 changed files with 707 additions and 345 deletions

View file

@ -94,7 +94,8 @@ func createTLSListener(addr string, certFile, keyFile string) (net.Listener, err
}
type Listeners struct {
mu sync.Mutex
mu sync.Mutex
// +checklocks:mu
listeners []net.Listener
}