1
0
mirror of https://github.com/golang/go synced 2024-10-02 04:18:33 -06:00
go/src/runtime/testdata
Eric Daniels d9b006a705 runtime/traceback: support tracking goroutine ancestor tracebacks with GODEBUG="tracebackancestors=N"
Currently, collecting a stack trace via runtime.Stack captures the stack for the
immediately running goroutines. This change extends those tracebacks to include
the tracebacks of their ancestors. This is done with a low memory cost and only
utilized when debug option tracebackancestors is set to a value greater than 0.

Resolves #22289

Change-Id: I7edacc62b2ee3bd278600c4a21052c351f313f3a
Reviewed-on: https://go-review.googlesource.com/70993
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
2018-04-13 20:42:38 +00:00
..
testprog runtime/traceback: support tracking goroutine ancestor tracebacks with GODEBUG="tracebackancestors=N" 2018-04-13 20:42:38 +00:00
testprogcgo cmd/go, cmd/link, runtime: enable PIE build mode, cgo race tests on FreeBSD 2018-03-27 02:50:29 +00:00
testprognet runtime, syscall: reset signal handlers to default in child 2017-06-14 14:00:56 +00:00