From 876c1feb7d5e10a6ff831de9db19b9ff0ea92fa8 Mon Sep 17 00:00:00 2001 From: alex-semenyuk Date: Mon, 20 Apr 2020 20:33:19 +0000 Subject: test/codegen, runtime/pprof, runtime: apply fmt Change-Id: Ife4e065246729319c39e57a4fbd8e6f7b37724e1 GitHub-Last-Rev: e71803eaeb366c00f6c156de0b0b2c50927a0e82 GitHub-Pull-Request: golang/go#38527 Reviewed-on: https://go-review.googlesource.com/c/go/+/228901 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- src/runtime/pprof/proto.go | 2 +- src/runtime/runtime-gdb_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime') diff --git a/src/runtime/pprof/proto.go b/src/runtime/pprof/proto.go index f3d8ac38bf..8519af6985 100644 --- a/src/runtime/pprof/proto.go +++ b/src/runtime/pprof/proto.go @@ -325,7 +325,7 @@ func (b *profileBuilder) addCPUData(data []uint64, tags []unsafe.Pointer) error // gentraceback guarantees that PCs in the // stack can be unconditionally decremented and // still be valid, so we must do the same. - uint64(funcPC(lostProfileEvent)+1), + uint64(funcPC(lostProfileEvent) + 1), } } b.m.lookup(stk, tag).count += int64(count) diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go index 58f410cc59..2dfa473514 100644 --- a/src/runtime/runtime-gdb_test.go +++ b/src/runtime/runtime-gdb_test.go @@ -635,6 +635,7 @@ func main() { time.Sleep(time.Second * 1) } ` + // TestGdbInfCallstack tests that gdb can unwind the callstack of cgo programs // on arm64 platforms without endless frames of function 'crossfunc1'. // https://golang.org/issue/37238 -- cgit v1.3