]> Cypherpunks repositories - gostls13.git/commit
runtime: fix dumpgoroutine() to deal with open-coded defers
authorDan Scales <danscales@google.com>
Sat, 26 Oct 2019 13:53:07 +0000 (06:53 -0700)
committerDan Scales <danscales@google.com>
Mon, 28 Oct 2019 01:00:20 +0000 (01:00 +0000)
commit1f3339f441e2053f8efd7ead417761ea319fe790
tree29c05fc684fb632aaece5d54e6d108bf645f95df
parent22d377077c01ced185f5f8d27f608e8c6dcb473c
runtime:  fix dumpgoroutine() to deal with open-coded defers

_defer.fn can be nil, so we need to add a check when dumping
_defer.fn.fn.

Fixes #35172

Change-Id: Ic1138be5ec9dce915a87467cfa51ff83acc6e3a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/203697
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/heapdump.go
src/runtime/runtime2.go