aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata
diff options
context:
space:
mode:
authorEmmanuel Odeke <emmanuel@orijtech.com>2020-11-09 20:31:58 +0000
committerKeith Randall <khr@golang.org>2020-11-09 21:03:36 +0000
commitd4957122ee8a45aa73b0e8700d3a41c0ee9f4442 (patch)
tree2eba002536c579ed5c236b5ecbdfad4f993fd9ba /src/runtime/testdata
parent8badef4cf64b5ace52b3e76b40f4702363a93b8a (diff)
downloadgo-d4957122ee8a45aa73b0e8700d3a41c0ee9f4442.tar.xz
Revert "runtime: make stack traces of endless recursion print only top and bottom 50"
This reverts commit 3a81338622eb5c8b94f11001855e2a68a9e36bed. Reason for revert: Some edge cases not properly covered due to changes within runtime traceback generation since 2017, that need to be examined. This change landed very late in the Go1.16 cycle. Change-Id: I8cf6f46ea0ef6161d878e79943e6c7cdac94bccf Reviewed-on: https://go-review.googlesource.com/c/go/+/268577 Trust: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/testdata')
-rw-r--r--src/runtime/testdata/testprog/deadlock.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/runtime/testdata/testprog/deadlock.go b/src/runtime/testdata/testprog/deadlock.go
index 0ee1557b13..105d6a5faa 100644
--- a/src/runtime/testdata/testprog/deadlock.go
+++ b/src/runtime/testdata/testprog/deadlock.go
@@ -20,7 +20,6 @@ func init() {
register("LockedDeadlock2", LockedDeadlock2)
register("GoexitDeadlock", GoexitDeadlock)
register("StackOverflow", StackOverflow)
- register("StackOverflowTopAndBottomTraces", StackOverflowTopAndBottomTraces)
register("ThreadExhaustion", ThreadExhaustion)
register("RecursivePanic", RecursivePanic)
register("RecursivePanic2", RecursivePanic2)
@@ -86,18 +85,6 @@ func StackOverflow() {
f()
}
-func StackOverflowTopAndBottomTraces() {
- var fi, gi func()
- fi = func() {
- gi()
- }
- gi = func() {
- fi()
- }
- debug.SetMaxStack(10000)
- fi()
-}
-
func ThreadExhaustion() {
debug.SetMaxThreads(10)
c := make(chan int)