Merge pull request #1184 from strukturag/checklocks-generics

checklocks: Remove ignore since generics are supported now.
This commit is contained in:
Joachim Bauch 2026-01-29 10:30:44 +01:00 committed by GitHub
commit 043c854cd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ import (
type ConcurrentMap[K comparable, V any] struct {
mu sync.RWMutex
// +checklocks:mu
d map[K]V // +checklocksignore: Not supported yet, see https://github.com/google/gvisor/issues/11671
d map[K]V
}
func (m *ConcurrentMap[K, V]) Set(key K, value V) {

View file

@ -29,7 +29,7 @@ import (
type Storage[T any] struct {
mu sync.Mutex
// +checklocks:mu
entries map[string]T // +checklocksignore: Not supported yet, see https://github.com/google/gvisor/issues/11671
entries map[string]T
}
func (s *Storage[T]) cleanup(key string) {