runtime_go1.9.go 575 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //go:build gc && go1.9 && !go1.23
  2. // +build gc,go1.9,!go1.23
  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. stktopsp uintptr
  28. param uintptr
  29. atomicstatus uint32
  30. stackLock uint32
  31. goid int64 // Here it is!
  32. }