diff options
| author | Austin Clements <austin@google.com> | 2023-03-13 14:02:16 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2023-03-21 19:14:14 +0000 |
| commit | 9eba17ff90963cdbbe47af887fb3152c0c4d1ebb (patch) | |
| tree | b4826f9ff7be13e45a660cc4486da6148129e077 /src/runtime/proc.go | |
| parent | 6be7fd3f9b5a7f319e362c41c53d9773022377e0 (diff) | |
| download | go-9eba17ff90963cdbbe47af887fb3152c0c4d1ebb.tar.xz | |
runtime: for deep stacks, print both the top 50 and bottom 50 frames
This is relatively easy using the new traceback iterator.
Ancestor tracebacks are now limited to 50 frames. We could keep that
at 100, but the fact that it used 100 before seemed arbitrary and
unnecessary.
Fixes #7181
Updates #54466
Change-Id: If693045881d84848f17e568df275a5105b6f1cb0
Reviewed-on: https://go-review.googlesource.com/c/go/+/475960
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 533cf20838..76ed8966dc 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -4356,7 +4356,7 @@ func saveAncestors(callergp *g) *[]ancestorInfo { ancestors := make([]ancestorInfo, n) copy(ancestors[1:], callerAncestors) - var pcs [_TracebackMaxFrames]uintptr + var pcs [tracebackInnerFrames]uintptr npcs := gcallers(callergp, 0, pcs[:]) ipcs := make([]uintptr, npcs) copy(ipcs, pcs[:]) |
