| 12345678910111213141516171819202122232425262728293031323334353637 |
- //go:build gc && go1.25
- // +build gc,go1.25
- package goid
- type stack struct {
- lo uintptr
- hi uintptr
- }
- type gobuf struct {
- sp uintptr
- pc uintptr
- g uintptr
- ctxt 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
- syscallbp uintptr
- stktopsp uintptr
- param uintptr
- atomicstatus uint32
- stackLock uint32
- goid int64 // Here it is!
- }
|