File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ go_library(
3131 "runtime_exectracer2.go" ,
3232 "runtime_go121_unsafe.go" ,
3333 "runtime_go124_unsafe.go" ,
34+ "runtime_go126_unsafe.go" ,
3435 "runtime_not_go121_unsafe.go" ,
3536 "runtime_other.go" ,
3637 "runtime_spinning_amd64.s" ,
Original file line number Diff line number Diff line change 33// Use of this source code is governed by a BSD-style
44// license that can be found in the LICENSE file.
55
6- //go:build go1.24
6+ // https://go.dev/cl/691596 (1.26) renames the internal map type which nogo relies on.
7+ //go:build go1.24 && !go1.26
78
89package sync
910
Original file line number Diff line number Diff line change 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+ // https://go.dev/cl/691596 (1.26) renames the internal map type which nogo relies on.
7+ //go:build go1.26
8+
9+ package sync
10+
11+ import "unsafe"
12+
13+ // Use checkoffset to assert that maptype.hasher (the only field we use) has
14+ // the correct offset.
15+ const maptypeHasherOffset = unsafe .Offsetof (maptype {}.Hasher ) // +checkoffset internal/abi MapType.Hasher
You can’t perform that action at this time.
0 commit comments