Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add go1.23 support #50

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions runtime_go1.23.go
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!
}
4 changes: 2 additions & 2 deletions runtime_go1.9.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build gc && go1.9
// +build gc,go1.9
//go:build gc && go1.9 && !go1.23
// +build gc,go1.9,!go1.23

package goid

Expand Down
Loading