1 // Copyright 2024 The gVisor Authors.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
5 6 //go:build go1.24
7 8 package sync
9 10 import "unsafe"
11 12 // Use checkoffset to assert that maptype.hasher (the only field we use) has
13 // the correct offset.
14 const maptypeHasherOffset = unsafe.Offsetof(maptype{}.Hasher) // +checkoffset internal/abi SwissMapType.Hasher
15