checklocks: Remove ignore since generics are supported now.

This commit is contained in:
Joachim Bauch 2026-01-29 10:26:48 +01:00
commit d80143af4c
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
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) {