-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//go:build gc && go1.23 | ||
// +build gc,go1.23 | ||
|
||
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 | ||
syscallbp uintptr | ||
stktopsp uintptr | ||
param uintptr | ||
atomicstatus uint32 | ||
stackLock uint32 | ||
goid int64 // Here it is! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters