mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
c24bf7ea55
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4620
37 lines
530 B
Go
37 lines
530 B
Go
// +build go1.9
|
|
|
|
package goid
|
|
|
|
type stack struct {
|
|
lo uintptr
|
|
hi uintptr
|
|
}
|
|
|
|
type gobuf struct {
|
|
sp uintptr
|
|
pc uintptr
|
|
g uintptr
|
|
ctxt uintptr
|
|
ret uintptr
|
|
lr uintptr
|
|
bp uintptr
|
|
}
|
|
|
|
type g struct {
|
|
stack stack
|
|
stackguard0 uintptr
|
|
stackguard1 uintptr
|
|
|
|
_panic uintptr
|
|
_defer uintptr
|
|
m uintptr
|
|
sched gobuf
|
|
syscallsp uintptr
|
|
syscallpc uintptr
|
|
stktopsp uintptr
|
|
param uintptr
|
|
atomicstatus uint32
|
|
stackLock uint32
|
|
goid int64 // Here it is!
|
|
}
|