]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: for deep stacks, print both the top 50 and bottom 50 frames
authorAustin Clements <austin@google.com>
Mon, 13 Mar 2023 18:02:16 +0000 (14:02 -0400)
committerAustin Clements <austin@google.com>
Tue, 21 Mar 2023 19:14:14 +0000 (19:14 +0000)
commit9eba17ff90963cdbbe47af887fb3152c0c4d1ebb
treeb4826f9ff7be13e45a660cc4486da6148129e077
parent6be7fd3f9b5a7f319e362c41c53d9773022377e0
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>
doc/go1.21.html
src/runtime/export_test.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/traceback.go
src/runtime/traceback_test.go