runtime_go1.23.go 599 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //go:build gc && go1.23 && !go1.25
  2. // +build gc,go1.23,!go1.25
  3. package goid
  4. type stack struct {
  5. lo uintptr
  6. hi uintptr
  7. }
  8. type gobuf struct {
  9. sp uintptr
  10. pc uintptr
  11. g uintptr
  12. ctxt uintptr
  13. ret uintptr
  14. lr uintptr
  15. bp uintptr
  16. }
  17. type g struct {
  18. stack stack
  19. stackguard0 uintptr
  20. stackguard1 uintptr
  21. _panic uintptr
  22. _defer uintptr
  23. m uintptr
  24. sched gobuf
  25. syscallsp uintptr
  26. syscallpc uintptr
  27. syscallbp uintptr
  28. stktopsp uintptr
  29. param uintptr
  30. atomicstatus uint32
  31. stackLock uint32
  32. goid int64 // Here it is!
  33. }