You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static analyzer has detected this issue in x/sync/semaphore/semaphore.go:132.
As I'm not familiar with golang and x/sync, this could be a false positive.
4. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:132: missing_lock: Accessing "s.cur" without holding lock "semaphore.Weighted.mu". Elsewhere, "golang.org/x/sync/semaphore.Weighted.cur" is accessed with "Weighted.mu" held 3 out of 4 times.
5. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:41: example_lock: Example 1: Locking "semaphore.Weighted.mu".
6. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:43: example_access: Example 1 (cont.): "semaphore.Weighted.cur" is accessed with lock "semaphore.Weighted.mu" held.
7. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:99: example_lock: Example 2: Locking "semaphore.Weighted.mu".
8. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:100: example_access: Example 2 (cont.): "semaphore.Weighted.cur" is accessed with lock "semaphore.Weighted.mu" held.
9. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:88: example_lock: Example 3: Locking "semaphore.Weighted.mu".
10. git-lfs-2.13.3/_build/src/github.com/git-lfs/git-lfs/vendor/golang.org/x/sync/semaphore/semaphore.go:91: example_access: Example 3 (cont.): "semaphore.Weighted.cur" is accessed with lock "semaphore.Weighted.mu" held.
# 130| }
# 131|
# 132|-> s.cur += w.n
# 133| s.waiters.Remove(next)
# 134| close(w.ready)
The text was updated successfully, but these errors were encountered:
Static analyzer has detected this issue in x/sync/semaphore/semaphore.go:132.
As I'm not familiar with golang and x/sync, this could be a false positive.
The text was updated successfully, but these errors were encountered: