fix go-cni race condition

Signed-off-by: Michael Zappa <michael.zappa@gmail.com>
This commit is contained in:
Michael Zappa
2025-01-16 10:41:24 -07:00
parent 7319817149
commit 06891f899d
34 changed files with 1716 additions and 50 deletions

View File

@@ -0,0 +1,17 @@
//go:build gccgo && go1.8
// +build gccgo,go1.8
package goid
// https://github.com/gcc-mirror/gcc/blob/releases/gcc-7/libgo/go/runtime/runtime2.go#L329-L354
type g struct {
_panic uintptr
_defer uintptr
m uintptr
syscallsp uintptr
syscallpc uintptr
param uintptr
atomicstatus uint32
goid int64 // Here it is!
}