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/runtime2.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/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 2e98f895a3..a9706a642e 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -1049,9 +1049,6 @@ type ancestorInfo struct { gopc uintptr // pc of go statement that created this goroutine } -// The maximum number of frames we print for a traceback -const _TracebackMaxFrames = 100 - // A waitReason explains why a goroutine has been stopped. // See gopark. Do not re-use waitReasons, add new ones. type waitReason uint8 |
