runtime_go1.25.go 566 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //go:build gc && go1.25
  2. // +build gc,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. lr uintptr
  14. bp uintptr
  15. }
  16. type g struct {
  17. stack stack
  18. stackguard0 uintptr
  19. stackguard1 uintptr
  20. _panic uintptr
  21. _defer uintptr
  22. m uintptr
  23. sched gobuf
  24. syscallsp uintptr
  25. syscallpc uintptr
  26. syscallbp uintptr
  27. stktopsp uintptr
  28. param uintptr
  29. atomicstatus uint32
  30. stackLock uint32
  31. goid int64 // Here it is!
  32. }