From c3db9af3a68f1a12d97d5cebaa434cd6e10dd11f Mon Sep 17 00:00:00 2001 From: Felix Geisendörfer Date: Wed, 26 Apr 2023 09:36:53 +0200 Subject: runtime: remove unused skip arg from fpTracebackPCs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was accidentally left behind when moving the logic to set the skip sentinel in pcBuf to the caller. Change-Id: Id7565f6ea4df6b32cf18b99c700bca322998d182 Reviewed-on: https://go-review.googlesource.com/c/go/+/489095 Reviewed-by: Michael Pratt Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Run-TryBot: Felix Geisendörfer --- src/runtime/export_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/export_test.go') diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index 07d14591a6..70ab24e853 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -437,7 +437,7 @@ func ShrinkStackAndVerifyFramePointers() { }) // If our new stack contains frame pointers into the old stack, this will // crash because the old stack has been poisoned. - FPCallers(0, make([]uintptr, 1024)) + FPCallers(make([]uintptr, 1024)) } // BlockOnSystemStack switches to the system stack, prints "x\n" to @@ -1819,6 +1819,6 @@ func PersistentAlloc(n uintptr) unsafe.Pointer { // FPCallers works like Callers and uses frame pointer unwinding to populate // pcBuf with the return addresses of the physical frames on the stack. -func FPCallers(skip int, pcBuf []uintptr) int { - return fpTracebackPCs(unsafe.Pointer(getcallerfp()), skip, pcBuf) +func FPCallers(pcBuf []uintptr) int { + return fpTracebackPCs(unsafe.Pointer(getcallerfp()), pcBuf) } -- cgit v1.3-5-g45d5