@@ -917,15 +917,15 @@ func traceStackID(mp *m, pcBuf []uintptr, skip int) uint64 {
917
917
// Fast path: Unwind using frame pointers.
918
918
pcBuf [0 ] = uintptr (skip )
919
919
if curgp == gp {
920
- nstk += fpTracebackPCs (unsafe .Pointer (getcallerfp ()), skip , pcBuf [1 :])
920
+ nstk += fpTracebackPCs (unsafe .Pointer (getcallerfp ()), pcBuf [1 :])
921
921
} else if curgp != nil {
922
922
// We're called on the g0 stack through mcall(fn) or systemstack(fn). To
923
923
// behave like gcallers above, we start unwinding from sched.bp, which
924
924
// points to the caller frame of the leaf frame on g's stack. The return
925
925
// address of the leaf frame is stored in sched.pc, which we manually
926
926
// capture here.
927
927
pcBuf [1 ] = curgp .sched .pc
928
- nstk += 1 + fpTracebackPCs (unsafe .Pointer (curgp .sched .bp ), skip , pcBuf [2 :])
928
+ nstk += 1 + fpTracebackPCs (unsafe .Pointer (curgp .sched .bp ), pcBuf [2 :])
929
929
}
930
930
}
931
931
if nstk > 0 {
@@ -948,7 +948,7 @@ func tracefpunwindoff() bool {
948
948
// returns the number of PCs written to pcBuf. The returned PCs correspond to
949
949
// "physical frames" rather than "logical frames"; that is if A is inlined into
950
950
// B, this will return a PC for only B.
951
- func fpTracebackPCs (fp unsafe.Pointer , skip int , pcBuf []uintptr ) (i int ) {
951
+ func fpTracebackPCs (fp unsafe.Pointer , pcBuf []uintptr ) (i int ) {
952
952
for i = 0 ; i < len (pcBuf ) && fp != nil ; i ++ {
953
953
// return addr sits one word above the frame pointer
954
954
pcBuf [i ] = * (* uintptr )(unsafe .Pointer (uintptr (fp ) + goarch .PtrSize ))
0 commit comments