runtime_gccgo_go1.8.go 366 B

1234567891011121314151617
  1. //go:build gccgo && go1.8
  2. // +build gccgo,go1.8
  3. package goid
  4. // https://github.com/gcc-mirror/gcc/blob/releases/gcc-7/libgo/go/runtime/runtime2.go#L329-L354
  5. type g struct {
  6. _panic uintptr
  7. _defer uintptr
  8. m uintptr
  9. syscallsp uintptr
  10. syscallpc uintptr
  11. param uintptr
  12. atomicstatus uint32
  13. goid int64 // Here it is!
  14. }