diff options
| author | Cherry Mui <cherryyz@google.com> | 2021-05-21 18:13:04 -0400 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2021-05-24 21:05:06 +0000 |
| commit | e0844acfc8baa57541a8efef723937c2733e0c99 (patch) | |
| tree | bccae84bf2b361ab8211760e4283fc2aac936e63 /src/runtime/pprof/pprof.go | |
| parent | ae26b451136a20cb29ac171b1b0dee6ccd06e6eb (diff) | |
| download | go-e0844acfc8baa57541a8efef723937c2733e0c99.tar.xz | |
[dev.typeparams] runtime/pprof: replace funcPC with internal/abi.FuncPCABIInternal
All funcPC references are ABIInternal functions. Replace with the
intrinsics.
Change-Id: I2266bb6d2b713eb63b6a09846e9f9c423cab6e9b
Reviewed-on: https://go-review.googlesource.com/c/go/+/322349
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/pprof/pprof.go')
| -rw-r--r-- | src/runtime/pprof/pprof.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go index 99eda10f1c..000abf935c 100644 --- a/src/runtime/pprof/pprof.go +++ b/src/runtime/pprof/pprof.go @@ -76,6 +76,7 @@ import ( "bufio" "bytes" "fmt" + "internal/abi" "io" "runtime" "sort" @@ -289,7 +290,7 @@ func (p *Profile) Add(value interface{}, skip int) { stk = stk[:n] if len(stk) == 0 { // The value for skip is too large, and there's no stack trace to record. - stk = []uintptr{funcPC(lostProfileEvent)} + stk = []uintptr{abi.FuncPCABIInternal(lostProfileEvent)} } p.mu.Lock() |
