diff options
| author | Austin Clements <austin@google.com> | 2023-08-07 18:11:17 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-07 22:27:50 +0000 |
| commit | 5f674f64e4e3f79adf45d301bcbc16a8a3a82b1d (patch) | |
| tree | aeface59785ddb96aaa11261a5016ca632367fb7 /src/runtime/trace.go | |
| parent | 008ab9adb8382a274ba25c005a046b912af94809 (diff) | |
| download | go-5f674f64e4e3f79adf45d301bcbc16a8a3a82b1d.tar.xz | |
Revert "runtime: drop stack-allocated pcvalueCaches"
This reverts CL 515277
Change-Id: Ie10378eed4993cb69f4a9b43a38af32b9d743155
Reviewed-on: https://go-review.googlesource.com/c/go/+/516855
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/trace.go')
| -rw-r--r-- | src/runtime/trace.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/trace.go b/src/runtime/trace.go index 125b8678db..a4d50d77a0 100644 --- a/src/runtime/trace.go +++ b/src/runtime/trace.go @@ -1345,6 +1345,7 @@ func fpunwindExpand(pcBuf []uintptr) []uintptr { } var ( + cache pcvalueCache lastFuncID = abi.FuncIDNormal newPCBuf = make([]uintptr, 0, traceStackSize) skip = pcBuf[0] @@ -1373,7 +1374,7 @@ outer: continue } - u, uf := newInlineUnwinder(fi, callPC) + u, uf := newInlineUnwinder(fi, callPC, &cache) for ; uf.valid(); uf = u.next(uf) { sf := u.srcFunc(uf) if sf.funcID == abi.FuncIDWrapper && elideWrapperCalling(lastFuncID) { |
