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 /doc | |
parent | 6be7fd3f9b5a7f319e362c41c53d9773022377e0 (diff) | |
download | go-git-9eba17ff90963cdbbe47af887fb3152c0c4d1ebb.tar.gz |
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 'doc')
-rw-r--r-- | doc/go1.21.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/go1.21.html b/doc/go1.21.html index 0af9d373af..38678a93c2 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -49,6 +49,14 @@ Do not send CLs removing the interior tags from such phrases. TODO: complete this section, or delete if not needed </p> +<p><!-- https://go.dev/issue/7181 --> + When printing very deep stacks, the runtime now prints the first 50 + (innermost) frames followed by the bottom 50 (outermost) frames, + rather than just printing the first 100 frames. This makes it easier + to see how deeply recursive stacks started, and is especially + valuable for debugging stack overflows. +</p> + <h2 id="compiler">Compiler</h2> <p> |