Codebase list golang-github-petermattis-goid / run/3c06df1e-e9f1-4a60-a289-45b344445a4a/main runtime_gccgo_go1.8.go
run/3c06df1e-e9f1-4a60-a289-45b344445a4a/main

Tree @run/3c06df1e-e9f1-4a60-a289-45b344445a4a/main (Download .tar.gz)

runtime_gccgo_go1.8.go @run/3c06df1e-e9f1-4a60-a289-45b344445a4a/mainraw · history · blame

//go:build gccgo && go1.8
// +build gccgo,go1.8

package goid

// https://github.com/gcc-mirror/gcc/blob/gcc-7-branch/libgo/go/runtime/runtime2.go#L329-L422

type g struct {
	_panic       uintptr
	_defer       uintptr
	m            uintptr
	syscallsp    uintptr
	syscallpc    uintptr
	param        uintptr
	atomicstatus uint32
	goid         int64 // Here it is!
}