Update to go1.24.0
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"internal/runtime/sys"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -182,10 +183,10 @@ func syscall0(fn *libFunc) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -213,10 +214,10 @@ func syscall1(fn *libFunc, a0 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -245,10 +246,10 @@ func syscall2(fn *libFunc, a0, a1 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -277,10 +278,10 @@ func syscall3(fn *libFunc, a0, a1, a2 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -309,10 +310,10 @@ func syscall4(fn *libFunc, a0, a1, a2, a3 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -341,10 +342,10 @@ func syscall5(fn *libFunc, a0, a1, a2, a3, a4 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
@@ -373,10 +374,10 @@ func syscall6(fn *libFunc, a0, a1, a2, a3, a4, a5 uintptr) (r, err uintptr) {
|
||||
resetLibcall := true
|
||||
if mp.libcallsp == 0 {
|
||||
mp.libcallg.set(gp)
|
||||
mp.libcallpc = getcallerpc()
|
||||
mp.libcallpc = sys.GetCallerPC()
|
||||
// sp must be the last, because once async cpu profiler finds
|
||||
// all three values to be non-zero, it will use them
|
||||
mp.libcallsp = getcallersp()
|
||||
mp.libcallsp = sys.GetCallerSP()
|
||||
} else {
|
||||
resetLibcall = false // See comment in sys_darwin.go:libcCall
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user